Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 90797a8

Browse files
authored
[Miniflare 2] Use scriptPath if available as the filePath of the script (#736)
* Use scriptPath if available as the filePath of the script * Changesets * Remove changeset * Allow empty string as scriptPath
1 parent 1837937 commit 90797a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/core/src/plugins/core.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,10 @@ export class CorePlugin extends Plugin<CoreOptions> implements CoreOptions {
668668
return {
669669
globals,
670670
additionalModules,
671-
script: { filePath: STRING_SCRIPT_PATH, code: this.script },
671+
script: {
672+
filePath: this.scriptPath ?? STRING_SCRIPT_PATH,
673+
code: this.script,
674+
},
672675
};
673676
}
674677

0 commit comments

Comments
 (0)