Skip to content

Commit c9c091d

Browse files
authoredMar 2, 2024··
build: target es2018 (#863)
1 parent baba867 commit c9c091d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎rollup.config.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ function getBabelOptions(targets) {
3030
}
3131
}
3232

33-
function getEsbuild(target, env = 'development') {
33+
function getEsbuild(env = 'development') {
3434
return esbuild({
3535
minify: env === 'production',
36-
target,
36+
target: 'es2018',
37+
supported: { 'import-meta': true },
3738
tsconfig: path.resolve('./tsconfig.json'),
3839
})
3940
}
@@ -77,7 +78,7 @@ function createESMConfig(input, output) {
7778
delimiters: ['\\b', '\\b(?!(\\.|/))'],
7879
preventAssignment: true,
7980
}),
80-
getEsbuild('node12'),
81+
getEsbuild(),
8182
],
8283
}
8384
}
@@ -153,7 +154,7 @@ function createSystemConfig(input, output, env) {
153154
delimiters: ['\\b', '\\b(?!(\\.|/))'],
154155
preventAssignment: true,
155156
}),
156-
getEsbuild('node12', env),
157+
getEsbuild(env),
157158
],
158159
}
159160
}

0 commit comments

Comments
 (0)
Please sign in to comment.