Skip to content

Commit 215dd5e

Browse files
committed
Remove error that "Only browser targets are supported in serve mode"
Sometimes there are multiple targets and one of them is a browser target. This is fine
1 parent d9b984f commit 215dd5e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/core/core/src/requests/TargetRequest.js

-8
Original file line numberDiff line numberDiff line change
@@ -340,14 +340,6 @@ export class TargetResolver {
340340
},
341341
});
342342
}
343-
if (!BROWSER_ENVS.has(targets[0].env.context)) {
344-
throw new ThrowableDiagnostic({
345-
diagnostic: {
346-
message: `Only browser targets are supported in serve mode`,
347-
origin: '@parcel/core',
348-
},
349-
});
350-
}
351343
targets[0].distDir = toProjectPath(
352344
this.options.projectRoot,
353345
serve.distDir,

0 commit comments

Comments
 (0)