Skip to content

Commit 8866d8d

Browse files
committed
chore: use es2017
1 parent 822cd02 commit 8866d8d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/unblock-area-limit/rollup.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export default {
1616
output: false
1717
}),
1818
typescript({
19-
// 这个版本会"编译"async函数
20-
target: 'ES2016',
19+
// 这个版本不会"编译"async函数
20+
target: 'ES2017',
2121
}),
2222
template({
2323
filePath: path.resolve(__dirname, 'src/main.user.js'),

tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"compilerOptions": {
33
"strict": true,
4-
"target": "ES6",
4+
"target": "ES2017",
55
"allowJs": true,
66
"lib": [
7-
"ES6",
7+
"ES2017",
88
"DOM",
99
],
1010
},

0 commit comments

Comments
 (0)