@@ -330,10 +330,10 @@ export class Project {
330
330
const mainModule = this . #modules. get ( '/main.ts' ) !
331
331
const depsModule = this . #modules. get ( '/deps.bundling.js' )
332
332
const sharedModule = this . #modules. get ( '/shared.bundling.js' )
333
- const ployfillModule = this . #modules. get ( '/ployfill .js' )
333
+ const polyfillModule = this . #modules. get ( '/polyfill .js' )
334
334
335
335
return [
336
- ployfillModule ? { src : util . cleanPath ( `${ baseUrl } /_aleph/ployfill .${ ployfillModule . hash . slice ( 0 , hashShort ) } .js` ) } : { } ,
336
+ polyfillModule ? { src : util . cleanPath ( `${ baseUrl } /_aleph/polyfill .${ polyfillModule . hash . slice ( 0 , hashShort ) } .js` ) } : { } ,
337
337
depsModule ? { src : util . cleanPath ( `${ baseUrl } /_aleph/deps.${ depsModule . hash . slice ( 0 , hashShort ) } .js` ) , } : { } ,
338
338
sharedModule ? { src : util . cleanPath ( `${ baseUrl } /_aleph/shared.${ sharedModule . hash . slice ( 0 , hashShort ) } .js` ) , } : { } ,
339
339
! this . isDev ? { src : util . cleanPath ( `${ baseUrl } /_aleph/main.${ mainModule . sourceHash . slice ( 0 , hashShort ) } .js` ) , } : { } ,
@@ -1351,16 +1351,16 @@ export class Project {
1351
1351
const mainJSConent = await Deno . readTextFile ( mainModule . bundlingFile )
1352
1352
await Deno . writeTextFile ( mainJSFile , mainJSConent )
1353
1353
1354
- // create and copy ployfill
1355
- const ployfillMode = newModule ( '/ployfill .js' )
1356
- ployfillMode . hash = ployfillMode . sourceHash = ( new Sha1 ) . update ( header ) . update ( `${ this . config . buildTarget } -${ VERSION } ` ) . hex ( )
1357
- const ployfillFile = path . join ( this . buildDir , `ployfill .${ ployfillMode . hash . slice ( 0 , hashShort ) } .js` )
1358
- if ( ! existsFileSync ( ployfillFile ) ) {
1359
- const rawPloyfillFile = `${ alephPkgUrl } /compiler/ployfills /${ this . config . buildTarget } /ployfill .js`
1360
- await this . _runDenoBundle ( rawPloyfillFile , ployfillFile , header , true )
1354
+ // create and copy polyfill
1355
+ const polyfillMode = newModule ( '/polyfill .js' )
1356
+ polyfillMode . hash = polyfillMode . sourceHash = ( new Sha1 ) . update ( header ) . update ( `${ this . config . buildTarget } -${ VERSION } ` ) . hex ( )
1357
+ const polyfillFile = path . join ( this . buildDir , `polyfill .${ polyfillMode . hash . slice ( 0 , hashShort ) } .js` )
1358
+ if ( ! existsFileSync ( polyfillFile ) ) {
1359
+ const rawPolyfillFile = `${ alephPkgUrl } /compiler/polyfills /${ this . config . buildTarget } /polyfill .js`
1360
+ await this . _runDenoBundle ( rawPolyfillFile , polyfillFile , header , true )
1361
1361
}
1362
- Deno . copyFile ( ployfillFile , path . join ( this . outputDir , '_aleph' , `ployfill .${ ployfillMode . hash . slice ( 0 , hashShort ) } .js` ) )
1363
- this . #modules. set ( ployfillMode . url , ployfillMode )
1362
+ Deno . copyFile ( polyfillFile , path . join ( this . outputDir , '_aleph' , `polyfill .${ polyfillMode . hash . slice ( 0 , hashShort ) } .js` ) )
1363
+ this . #modules. set ( polyfillMode . url , polyfillMode )
1364
1364
1365
1365
// bundle and copy page moudles
1366
1366
await Promise . all ( pageModules . map ( async mod => this . _createPageBundle ( mod , localDepList , header ) ) )
0 commit comments