Skip to content

Commit 57d92f9

Browse files
committed
preset-env
1 parent 2fcc7b1 commit 57d92f9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

transpiler/transpiler.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,17 @@ class Transpiler {
9292
const module = this.#obtainModuleName(file);
9393

9494
const result = babelCore.transformSync(this.#getContents(file), {
95+
presets: [
96+
[
97+
'@babel/preset-env',
98+
{
99+
targets: {
100+
chrome: '90',
101+
safari: '16',
102+
}
103+
}
104+
],
105+
],
95106
plugins: [
96107
'@babel/plugin-transform-modules-amd',
97108
[

0 commit comments

Comments
 (0)