Skip to content

Commit

Permalink
fix: revert transform runtime and bundle babel helpers (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepankuzmin authored Jul 9, 2022
1 parent ad8afc8 commit 1e06b87
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 27 deletions.
6 changes: 1 addition & 5 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,5 @@
["@babel/preset-env", { "bugfixes": true }],
"@babel/preset-react",
"@babel/preset-flow"
],
"plugins": [
"@babel/plugin-transform-flow-strip-types",
"@babel/plugin-transform-runtime"
]
}
}
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@
"devDependencies": {
"@babel/core": "^7.18.6",
"@babel/eslint-parser": "^7.18.2",
"@babel/plugin-transform-flow-strip-types": "^7.18.6",
"@babel/plugin-transform-runtime": "^7.18.6",
"@babel/preset-env": "^7.18.6",
"@babel/preset-flow": "^7.18.6",
"@babel/preset-react": "^7.18.6",
Expand Down
10 changes: 2 additions & 8 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,14 @@ export default {
{ file: pkg.module, sourcemap: true, format: 'esm' }
],
external: [
/@babel\/runtime/,
'react',
'react-dom',
'mapbox-gl'
],
plugins: [
nodeResolve(),
babel({
babelHelpers: 'runtime',
exclude: '**/node_modules/**'
}),
commonjs({
transformMixedEsModules: true
}),
babel({ babelHelpers: 'bundled' }),
commonjs({ transformMixedEsModules: true }),
terser()
]
};
12 changes: 0 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1000,18 +1000,6 @@
dependencies:
"@babel/helper-plugin-utils" "^7.18.6"

"@babel/plugin-transform-runtime@^7.18.6":
version "7.18.6"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.18.6.tgz#77b14416015ea93367ca06979710f5000ff34ccb"
integrity sha512-8uRHk9ZmRSnWqUgyae249EJZ94b0yAGLBIqzZzl+0iEdbno55Pmlt/32JZsHwXD9k/uZj18Aqqk35wBX4CBTXA==
dependencies:
"@babel/helper-module-imports" "^7.18.6"
"@babel/helper-plugin-utils" "^7.18.6"
babel-plugin-polyfill-corejs2 "^0.3.1"
babel-plugin-polyfill-corejs3 "^0.5.2"
babel-plugin-polyfill-regenerator "^0.3.1"
semver "^6.3.0"

"@babel/plugin-transform-shorthand-properties@^7.18.6":
version "7.18.6"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz#6d6df7983d67b195289be24909e3f12a8f664dc9"
Expand Down

0 comments on commit 1e06b87

Please sign in to comment.