File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1212 * governing permissions and limitations under the License.
1313 */
1414
15- import fg from 'fast-glob' ;
1615import { build } from 'esbuild' ;
16+ import fg from 'fast-glob' ;
1717import fs from 'fs' ;
1818
1919const relativeImportRegex = RegExp (
@@ -79,7 +79,7 @@ export const buildPackage = async (paths) => {
7979 outdir : '.' ,
8080 outbase : '.' ,
8181 sourcemap : true ,
82- target : [ 'es2018 ' ] ,
82+ target : [ 'es2020 ' ] ,
8383 } ;
8484 if ( devPaths . length ) {
8585 builds . push (
Original file line number Diff line number Diff line change @@ -109,12 +109,12 @@ export default defineConfig({
109109 chunkFileNames : '[name].js' ,
110110 } ,
111111 } ,
112- target : 'es2022 ' ,
112+ target : 'es2020 ' ,
113113 sourcemap : true ,
114114 emptyOutDir : true ,
115115 outDir : 'dist' ,
116116 } ,
117117 esbuild : {
118- target : 'es2022 ' ,
118+ target : 'es2020 ' ,
119119 } ,
120120} ) ;
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ export default defineConfig({
8585 chunkFileNames : '[name].js' ,
8686 } ,
8787 } ,
88- target : 'es2022 ' ,
88+ target : 'es2020 ' ,
8989 sourcemap : true ,
9090 emptyOutDir : true ,
9191 outDir : 'dist' ,
@@ -98,6 +98,6 @@ export default defineConfig({
9898 } ,
9999 } ,
100100 esbuild : {
101- target : 'es2022 ' ,
101+ target : 'es2020 ' ,
102102 } ,
103103} ) ;
You can’t perform that action at this time.
0 commit comments