diff --git a/packages/core/src/plugins/core.ts b/packages/core/src/plugins/core.ts index 8b84c40ea..8e126a2cf 100644 --- a/packages/core/src/plugins/core.ts +++ b/packages/core/src/plugins/core.ts @@ -668,7 +668,10 @@ export class CorePlugin extends Plugin implements CoreOptions { return { globals, additionalModules, - script: { filePath: STRING_SCRIPT_PATH, code: this.script }, + script: { + filePath: this.scriptPath ?? STRING_SCRIPT_PATH, + code: this.script, + }, }; }