Skip to content

Commit

Permalink
revert(configuration): ⬇️ manage dependencies
Browse files Browse the repository at this point in the history
remove `@babel/runtime`, revert `react` and `styled-components` from latest version

fix #24
  • Loading branch information
achmadk committed Oct 6, 2020
1 parent 308cc74 commit b6ddd7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@
],
"sideEffects": false,
"dependencies": {
"@babel/runtime": "7.11.2",
"react": ">=16.13.x",
"styled-components": ">=5.2.0"
"react": ">=0.14.x",
"styled-components": ">=2.4.0"
},
"devDependencies": {
"@babel/core": "^7.11.6",
Expand Down
9 changes: 3 additions & 6 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ const cjs = [
plugins: [
babel({
exclude: /node_modules/,
babelHelpers: 'runtime',
plugins: ['@babel/transform-runtime']
babelHelpers: 'bundled'
}),
replace({ 'process.env.NODE_ENV': JSON.stringify('development') })
]
Expand All @@ -35,9 +34,8 @@ const cjs = [
plugins: [
babel({
exclude: /node_modules/,
babelHelpers: 'runtime',
babelHelpers: 'bundled',
plugins: [
'@babel/transform-runtime',
['babel-plugin-transform-react-remove-prop-types', {
removeImport: true
}]
Expand All @@ -57,8 +55,7 @@ const esm = [
plugins: [
babel({
exclude: /node_modules/,
babelHelpers: 'runtime',
plugins: [['@babel/transform-runtime', { useESModules: true }]]
babelHelpers: 'bundled'
}),
sizeSnapshot()
]
Expand Down

0 comments on commit b6ddd7e

Please sign in to comment.