File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/wrangler/src/config Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ export type NormalizeAndValidateConfigArgs = {
6060 remote ?: boolean ;
6161 localProtocol ?: string ;
6262 upstreamProtocol ?: string ;
63+ script ?: string ;
6364} ;
6465
6566const ENGLISH = new Intl . ListFormat ( "en-US" ) ;
@@ -329,7 +330,7 @@ function applyPythonConfig(
329330 config : Config ,
330331 args : NormalizeAndValidateConfigArgs
331332) {
332- const mainModule = "script" in args ? args . script : config . main ;
333+ const mainModule = args . script ?? config . main ;
333334 if ( typeof mainModule === "string" && mainModule . endsWith ( ".py" ) ) {
334335 // Workers with a python entrypoint should have bundling turned off, since all of Wrangler's bundling is JS/TS specific
335336 config . no_bundle = true ;
You can’t perform that action at this time.
0 commit comments