File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ module.exports = function hbsImports({ types: t }: { types: BabelTypes}) {
24
24
ImportProcessor . options = Object . assign ( { } , state . opts ) ;
25
25
// @ts -ignore
26
26
const fileName = path . hub . file . opts . filename ;
27
+ if ( ! fileName ) return ;
27
28
if ( fileName . includes ( 'embroider' ) ) {
28
29
const parts = fileName . split ( '/' ) ;
29
30
const index = parts . indexOf ( 'embroider' ) ;
@@ -35,6 +36,7 @@ module.exports = function hbsImports({ types: t }: { types: BabelTypes}) {
35
36
exit ( path , state ) {
36
37
// @ts -ignore
37
38
const fileName = path . hub . file . opts . filename ;
39
+ if ( ! fileName ) return ;
38
40
const importedStyles = allImports && [ ...allImports . others ]
39
41
. filter ( x => x . endsWith ( '.scss' ) )
40
42
. map ( x => x . replace ( new RegExp ( '^' + ImportProcessor . options . namespace + '\/' ) , '' ) )
You can’t perform that action at this time.
0 commit comments