What's the different between adding external resource as dependency or @including in server files?

Hi there guys!~

Can someone tell me what the difference is between:

server_scripts {
	'@external_resource/file.lua'
}

and

dependencies {
	'external_resource'
}

When would you use one over the other?

I’m not sure but

if the dependent resource exists and has not started it will load this resource before the resource that “needs” it.

For example if you do that
start screenshot-basic
^ This resource needs yarn / webpack

FXServer will automatically start yarn/webpack if they exists and then start screenshot-basic is its dependencies have been correctly loaded.

So dependencies will be sure the resource loads prior while the included file will allow you to use a function inside that file. Is that correct?