This repository was archived by the owner on Nov 8, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ module.exports = class Next2DWebpackAutoLoaderPlugin
173173 }
174174
175175 return files ;
176- } ;
176+ }
177177
178178 /**
179179 *
@@ -265,22 +265,22 @@ module.exports = class Next2DWebpackAutoLoaderPlugin
265265 break ;
266266
267267 case path . indexOf ( "src/model/" ) > - 1 :
268- {
269- const key = file
270- . split ( "src/model/" ) [ 1 ]
271- . split ( "/" )
272- . join ( "." )
273- . slice ( 0 , - 3 ) ;
274-
275- const asName = file
276- . split ( "src/model/" ) [ 1 ]
277- . split ( "/" )
278- . join ( "_" )
279- . slice ( 0 , - 3 ) ;
280-
281- imports += `import { ${ name } as ${ asName } } from "/src/${ path . split ( "src/" ) [ 1 ] . split ( ".js" ) [ 0 ] } ";${ os . EOL } ` ;
282- packages += `["${ key } ", ${ asName } ],${ os . EOL } ` ;
283- }
268+ {
269+ const key = file
270+ . split ( "src/model/" ) [ 1 ]
271+ . split ( "/" )
272+ . join ( "." )
273+ . slice ( 0 , - 3 ) ;
274+
275+ const asName = file
276+ . split ( "src/model/" ) [ 1 ]
277+ . split ( "/" )
278+ . join ( "_" )
279+ . slice ( 0 , - 3 ) ;
280+
281+ imports += `import { ${ name } as ${ asName } } from "/src/${ path . split ( "src/" ) [ 1 ] . split ( ".js" ) [ 0 ] } ";${ os . EOL } ` ;
282+ packages += `["${ key } ", ${ asName } ],${ os . EOL } ` ;
283+ }
284284 break ;
285285
286286 default :
Original file line number Diff line number Diff line change 11{
22 "name" : " @next2d/webpack-auto-loader-plugin" ,
33 "description" : " Next2D Framework webpack Auto Loader plugin." ,
4- "version" : " 1.6.3 " ,
4+ "version" : " 1.6.4 " ,
55 "author" :
" Toshiyuki Ienaga <[email protected] >" ,
66 "license" : " MIT" ,
77 "main" : " index.js" ,
You can’t perform that action at this time.
0 commit comments