Skip to content

Commit 63cb73c

Browse files
committed
Add transform runtime
1 parent bcfe1e9 commit 63cb73c

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

babel.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ const presets = [
77
],
88
];
99

10-
module.exports = { presets };
10+
const plugins = [
11+
"@babel/plugin-transform-runtime"
12+
];
13+
14+
module.exports = { presets, plugins };

package-lock.json

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@
2121
"devDependencies": {
2222
"@babel/cli": "^7.1.5",
2323
"@babel/core": "^7.1.5",
24+
"@babel/plugin-transform-runtime": "^7.1.0",
2425
"@babel/preset-env": "^7.1.5"
2526
},
2627
"dependencies": {
27-
"@babel/polyfill": "^7.0.0"
28+
"@babel/polyfill": "^7.0.0",
29+
"@babel/runtime": "^7.1.5"
2830
}
2931
}

0 commit comments

Comments
 (0)