Skip to content

Commit ae0ca77

Browse files
committed
Fix ReferenceError: regeneratorRuntime is not defined
1 parent 168743b commit ae0ca77

File tree

4 files changed

+244
-3
lines changed

4 files changed

+244
-3
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
}]
99
],
1010
"plugins": [
11-
"@babel/plugin-proposal-class-properties"
11+
"@babel/plugin-proposal-class-properties",
12+
"@babel/transform-runtime"
1213
],
1314
"env": {
1415
"test": {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
},
3030
"devDependencies": {
3131
"@babel/core": "^7.12.10",
32+
"@babel/plugin-transform-runtime": "^7.14.5",
3233
"@babel/preset-env": "^7.12.11",
3334
"@rollup/plugin-commonjs": "^17.0.0",
3435
"@rollup/plugin-json": "^4.1.0",
@@ -52,4 +53,4 @@
5253
"svelte-loader": "^2.13.6"
5354
},
5455
"dependencies": {}
55-
}
56+
}

rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export default {
9797

9898
babel({
9999
exclude: 'node_modules/**',
100+
runtimeHelpers: true,
100101
}),
101102
],
102103
watch: {

0 commit comments

Comments
 (0)