@@ -58,19 +58,25 @@ function getEntry0() {
5858 const newEntries = { } ;
5959 // 把value添加.webpack后缀
6060 for ( const [ key , value ] of Object . entries ( entries ) ) {
61- if ( value . endsWith ( ".TD" ) ) { // Text Depends
61+ if ( value . endsWith ( ".I" ) || value . includes ( "#" ) ) {
62+ continue ;
63+ }
64+ if ( value . endsWith ( ".TD" ) ) {
65+ // Text Depends
6266 newEntries [ key ] = `${ value } .webpack` ;
6367 }
6468 }
6569 return newEntries ;
6670}
71+
6772function getEntry ( ) {
6873 const libDir = path . resolve ( __dirname , "lib" ) ;
6974 let entries = getEntries ( libDir ) ;
7075 const newEntries = { } ;
7176 // 把value添加.webpack后缀
7277 for ( const [ key , value ] of Object . entries ( entries ) ) {
73- if ( value . endsWith ( ".T" ) ) { // Text
78+ if ( value . endsWith ( ".T" ) ) {
79+ // Text
7480 newEntries [ key ] = `${ value } .webpack` ;
7581 }
7682 }
@@ -162,7 +168,7 @@ async function prepareBuild(webpackEntries) {
162168 absolutePathStr = absolutePathStr . replace ( / \\ / g, "/" ) ;
163169 absolutePathStr = absolutePathStr . replace ( / \. j s f l $ / , ".webpack.jsfl" ) ;
164170
165- var toText = `require(["${ absolutePathStr } "]);` ;
171+ var toText = `require(["${ absolutePathStr } "]);` ;
166172 sourceCode = sourceCode . replaceAll ( match [ 0 ] , toText ) ;
167173 }
168174
@@ -288,7 +294,6 @@ async function buildProject() {
288294 await afterBuild ( value ) ;
289295 }
290296
291-
292297 for ( let index = 0 ; index < getObjectLength ( entry0 ) ; index ++ ) {
293298 const value = getObjectEntryByIndex ( entry0 , index ) ;
294299 console . log ( "Entry:" , value ) ;
0 commit comments