File tree 1 file changed +3
-2
lines changed
packages/@css-blocks/webpack/src
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { TemplateTypes } from "@opticss/template-api" ;
2
- import { ObjectDictionary , objectValues } from "@opticss/util" ;
2
+ import { ObjectDictionary , flatten , objectValues } from "@opticss/util" ;
3
3
import * as debugGenerator from "debug" ;
4
4
import { postcss } from "opticss" ;
5
5
import * as path from "path" ;
@@ -114,7 +114,7 @@ export class CssBlocksPlugin
114
114
entries = webpackEntry ;
115
115
}
116
116
else if ( typeof webpackEntry === "object" ) {
117
- entries = objectValues ( webpackEntry ) ;
117
+ entries = flatten ( objectValues ( webpackEntry ) ) ;
118
118
}
119
119
120
120
let pending : PendingResult = this . analyzer . analyze ( ...entries )
@@ -322,3 +322,4 @@ export class CssBlocksPlugin
322
322
this . applyPluginsAsync ( "block-compilation-complete" , result , cb ) ;
323
323
}
324
324
}
325
+
You can’t perform that action at this time.
0 commit comments