OptionalasyncOptionalcontentJavaScript content to be injected. This string is processed by Vite plugins if type is "module".
You can use id to give Vite a hint about the file extension.
OptionalidIf "content" is provided and type is "module", this will be its identifier.
If you are using TypeScript, you can add .ts extension here for example.
OptionalsrcPath to the script. This value is resolved by Vite so it can be a node module or a file path.
OptionaltypeScript type.
If the script should be loaded asynchronously.