File tree Expand file tree Collapse file tree 1 file changed +7
-15
lines changed
packages/qwik/src/optimizer/src/plugins Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -745,21 +745,13 @@ export function createQwikPlugin(optimizerOptions: OptimizerOptions = {}) {
745
745
parentIds . set ( key , id ) ;
746
746
currentOutputs . set ( key , [ mod , id ] ) ;
747
747
deps . add ( key ) ;
748
- if ( opts . target === 'client' ) {
749
- if ( devServer ) {
750
- // invalidate the segment so that the client will pick it up
751
- const rollupModule = devServer . moduleGraph . getModuleById ( key ) ;
752
- if ( rollupModule ) {
753
- devServer . moduleGraph . invalidateModule ( rollupModule ) ;
754
- }
755
- } else {
756
- // rollup must be told about all entry points
757
- ctx . emitFile ( {
758
- id : key ,
759
- type : 'chunk' ,
760
- preserveSignature : 'allow-extension' ,
761
- } ) ;
762
- }
748
+ if ( opts . target === 'client' && ! devServer ) {
749
+ // rollup must be told about all entry points
750
+ ctx . emitFile ( {
751
+ id : key ,
752
+ type : 'chunk' ,
753
+ preserveSignature : 'allow-extension' ,
754
+ } ) ;
763
755
}
764
756
}
765
757
}
You can’t perform that action at this time.
0 commit comments