@@ -14,7 +14,7 @@ const esbuildBase = {
1414 minify : true ,
1515 platform : 'browser' ,
1616 charset : 'utf8' ,
17- target : [ 'es2020' , 'firefox78 ' , 'chrome78 ' , 'safari11.1' ] ,
17+ target : [ 'es2020' , 'edge79 ' , 'firefox67' , 'chrome64 ', 'safari11.1' ] ,
1818} ;
1919
2020/** @type {import('esbuild').Plugin } */
@@ -38,8 +38,6 @@ const kayrosFixPlugin = {
3838} ;
3939
4040async function main ( ) {
41- const { default : pluginBabel } = await import ( 'esbuild-plugin-babel' ) ;
42-
4341 /** @type {Record<string, Partial<import('esbuild').BuildOptions>> } */
4442 const builds = {
4543 esm : {
@@ -52,7 +50,7 @@ async function main () {
5250 outfile : './lib/monogatari.node.js' ,
5351 sourcemap : 'linked' ,
5452 define : {
55- 'import.meta.url' : 'location' ,
53+ 'import.meta.url' : 'location.origin ' ,
5654 } ,
5755 } ,
5856 iife : {
@@ -61,24 +59,8 @@ async function main () {
6159 outfile : './dist/engine/core/monogatari.js' ,
6260 globalName : 'Monogatari' ,
6361 define : {
64- 'import.meta.url' : 'location' ,
62+ 'import.meta.url' : 'location.origin ' ,
6563 } ,
66- plugins : [
67- pluginBabel ( {
68- filter : / .j s $ / ,
69- config : {
70- presets : [
71- [
72- "@babel/preset-env" ,
73- {
74- useBuiltIns : "usage" ,
75- corejs : 3
76- }
77- ]
78- ]
79- }
80- } )
81- ]
8264 } ,
8365 debug : {
8466 entryPoints : [ './debug/index.js' ] ,
0 commit comments