Skip to content

Commit

Permalink
[Miniflare 2] Use scriptPath if available as the filePath of the …
Browse files Browse the repository at this point in the history
…script (#736)

* Use scriptPath if available as the filePath of the script

* Changesets

* Remove changeset

* Allow empty string as scriptPath
  • Loading branch information
frandiox authored Nov 8, 2023
1 parent 1837937 commit 90797a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/src/plugins/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,10 @@ export class CorePlugin extends Plugin<CoreOptions> implements CoreOptions {
return {
globals,
additionalModules,
script: { filePath: STRING_SCRIPT_PATH, code: this.script },
script: {
filePath: this.scriptPath ?? STRING_SCRIPT_PATH,
code: this.script,
},
};
}

Expand Down

0 comments on commit 90797a8

Please sign in to comment.