Skip to content

Commit

Permalink
Remove _serveAssetsFromWorker
Browse files Browse the repository at this point in the history
  • Loading branch information
penalosa committed Jun 10, 2024
1 parent d0027f4 commit 6dd781b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 6 additions & 2 deletions packages/wrangler/src/api/startDevWorker/BundlerController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ export class BundlerController extends Controller<BundlerControllerEventMap> {
bundle: true,
additionalModules: [],
moduleCollector,
serveAssetsFromWorker: Boolean(config._serveAssetsFromWorker),
serveAssetsFromWorker: Boolean(
config.legacy?.assets && !config.dev?.remote
),
doBindings: config._bindings?.durable_objects?.bindings ?? [],
jsxFactory: config.build.jsxFactory,
jsxFragment: config.build.jsxFactory,
Expand Down Expand Up @@ -210,7 +212,9 @@ export class BundlerController extends Controller<BundlerControllerEventMap> {
additionalModules: config._additionalModules,
rules: config.build.moduleRules,
assets: config.legacy?.assets,
serveAssetsFromWorker: Boolean(config._serveAssetsFromWorker),
serveAssetsFromWorker: Boolean(
config.legacy?.assets && !config.dev?.remote
),
tsconfig: config.build?.tsconfig,
minify: config.build?.minify,
nodejsCompatMode: config.build.nodejsCompatMode,
Expand Down
1 change: 0 additions & 1 deletion packages/wrangler/src/api/startDevWorker/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ export interface InputStartDevWorkerOptions {
sendMetrics?: boolean;
usageModel?: "bundled" | "unbound";
_bindings?: CfWorkerInit["bindings"]; // Type level constraint for bindings not sharing names
_serveAssetsFromWorker?: boolean;
_processEntrypoint?: boolean;
_additionalModules?: CfModule[];
// --/ PASSTHROUGH --
Expand Down
3 changes: 0 additions & 3 deletions packages/wrangler/src/dev/dev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,6 @@ function DevSession(props: DevSessionProps) {
script: { path: props.entry.file },
directory: props.entry.directory,
_bindings: props.bindings,
_serveAssetsFromWorker: Boolean(
props.assetPaths && !props.isWorkersSite && props.local
),
_processEntrypoint: props.processEntrypoint,
_additionalModules: props.additionalModules,

Expand Down

0 comments on commit 6dd781b

Please sign in to comment.