Skip to content

Commit

Permalink
fix(dev): avoid warning in dev mode (#6674)
Browse files Browse the repository at this point in the history
* fix(dev): don't emitFile in serve mode
  • Loading branch information
wmertens authored Jul 12, 2024
1 parent 9292a59 commit e4eb2c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/qwik/src/optimizer/src/plugins/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -761,8 +761,8 @@ export function createPlugin(optimizerOptions: OptimizerOptions = {}) {
debug(`transform()`, `segment ${key}`, mod.hook?.displayName);
currentOutputs.set(key, [mod, id]);
deps.add(key);
// rollup must be told about entry points
if (opts.target === 'client' && mod.isEntry) {
// rollup must be told about all entry points
if (!devServer && opts.target === 'client') {
ctx.emitFile({
id: key,
type: 'chunk',
Expand Down

0 comments on commit e4eb2c3

Please sign in to comment.