File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/vite-plugin-angular/src/lib Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ export function angular(options?: PluginOptions): Plugin[] {
134134 const sourceFileCache = new SourceFileCache ( ) ;
135135 const isProd = process . env [ 'NODE_ENV' ] === 'production' ;
136136 const isTest = process . env [ 'NODE_ENV' ] === 'test' || ! ! process . env [ 'VITEST' ] ;
137+ const isStackBlitz = ! ! process . versions [ 'webcontainer' ] ;
137138 const jit =
138139 typeof pluginOptions ?. jit !== 'undefined' ? pluginOptions . jit : isTest ;
139140 let viteServer : ViteDevServer | undefined ;
@@ -433,7 +434,7 @@ export function angular(options?: PluginOptions): Plugin[] {
433434
434435 return [
435436 angularPlugin ( ) ,
436- ( isTest && angularVitestPlugin ( ) ) as Plugin ,
437+ ( isTest && ! isStackBlitz && angularVitestPlugin ( ) ) as Plugin ,
437438 ( jit &&
438439 jitPlugin ( {
439440 inlineStylesExtension : pluginOptions . inlineStylesExtension ,
You can’t perform that action at this time.
0 commit comments