File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ export function createIdResolver(
7272 idOnly : true ,
7373 } ) ,
7474 ] ,
75+ undefined ,
76+ false ,
7577 )
7678 pluginContainerMap . set ( environment , pluginContainer )
7779 }
@@ -92,6 +94,8 @@ export function createIdResolver(
9294 pluginContainer = await createEnvironmentPluginContainer (
9395 environment as Environment ,
9496 [ aliasPlugin ( { entries : environment . config . resolve . alias } ) ] ,
97+ undefined ,
98+ false ,
9599 )
96100 aliasOnlyPluginContainerMap . set ( environment , pluginContainer )
97101 }
Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ export class ScanEnvironment extends BaseEnvironment {
6767 this . _pluginContainer = await createEnvironmentPluginContainer (
6868 this ,
6969 this . plugins ,
70+ undefined ,
71+ false ,
7072 )
7173 }
7274}
Original file line number Diff line number Diff line change @@ -136,11 +136,13 @@ export async function createEnvironmentPluginContainer(
136136 environment : Environment ,
137137 plugins : Plugin [ ] ,
138138 watcher ?: FSWatcher ,
139+ autoStart = true ,
139140) : Promise < EnvironmentPluginContainer > {
140141 const container = new EnvironmentPluginContainer (
141142 environment ,
142143 plugins ,
143144 watcher ,
145+ autoStart ,
144146 )
145147 await container . resolveRollupOptions ( )
146148 return container
@@ -183,7 +185,9 @@ class EnvironmentPluginContainer {
183185 public environment : Environment ,
184186 public plugins : Plugin [ ] ,
185187 public watcher ?: FSWatcher ,
188+ autoStart = true ,
186189 ) {
190+ this . _started = ! autoStart
187191 this . minimalContext = new MinimalPluginContext (
188192 { rollupVersion, watchMode : true } ,
189193 environment ,
You can’t perform that action at this time.
0 commit comments