Skip to content

Commit

Permalink
fix: include runtime to fix federated issue
Browse files Browse the repository at this point in the history
  • Loading branch information
royriojas-rivian committed Sep 13, 2021
1 parent 2c02051 commit 6a6d243
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
10 changes: 7 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
"projectName": "mobx-form"
},
"peerDependencies": {
"@babel/runtime": "^7.12.1",
"mobx": "^6.0.1"
},
"devDependencies": {
Expand All @@ -79,6 +78,7 @@
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
"@babel/plugin-transform-runtime": "^7.9.6",
"@babel/preset-env": "^7.9.6",
"@babel/runtime": "^7.12.1",
"@redisrupt/eslint-red": "^6.0.0",
"@rollup/plugin-babel": "^5.0.0",
"@rollup/plugin-commonjs": "^11.1.0",
Expand Down
8 changes: 4 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default [
plugins: [
babel({
babelrc: false,
babelHelpers: 'runtime',
babelHelpers: 'bundled',
presets: [
[
'@babel/preset-env',
Expand All @@ -114,7 +114,7 @@ export default [
],
],
...commonBabelConfig,
plugins: getBabelPlugins({ includeRuntime: true }),
plugins: getBabelPlugins({ includeRuntime: false }),
}),
commonjs(),
],
Expand All @@ -127,7 +127,7 @@ export default [
plugins: [
babel({
babelrc: false,
babelHelpers: 'runtime',
babelHelpers: 'bundled',
presets: [
[
'@babel/preset-env',
Expand All @@ -140,7 +140,7 @@ export default [
],
],
...commonBabelConfig,
plugins: getBabelPlugins({ includeRuntime: true }),
plugins: getBabelPlugins({ includeRuntime: false }),
}),
commonjs(),
],
Expand Down

0 comments on commit 6a6d243

Please sign in to comment.