Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
build(babel): Update to babel 7
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Babel
  • Loading branch information
Aidurber committed Oct 14, 2018
1 parent 7150f64 commit 548fb48
Show file tree
Hide file tree
Showing 5 changed files with 2,513 additions and 1,017 deletions.
21 changes: 2 additions & 19 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
{
"presets": [
["env", { "modules": false }],
"react",
[
"latest",
{
"es2015": {
"modules": false
}
}
]
],
"presets": ["@babel/env", "@babel/react"],
"env": {
"production": {
"plugins": [
["react-remove-properties", { "properties": ["data-test"] }],
"external-helpers"
]
},
"test": {
"presets": ["es2015", "react"]
"plugins": [["react-remove-properties", { "properties": ["data-test"] }]]
}
}
}
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

28 changes: 12 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,39 +21,35 @@
"lodash.isequal": "^4.5.0"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-eslint": "^10.0.0",
"babel-jest": "^23.4.0",
"babel-plugin-external-helpers": "^6.22.0",
"@babel/core": "^7.1.2",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.0.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^23.6.0",
"babel-plugin-react-remove-properties": "^0.2.5",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-es2015": "^6.24.1",
"babel-preset-es2015-rollup": "^3.0.0",
"babel-preset-latest": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-1": "^6.24.1",
"cross-env": "^5.1.3",
"cross-env": "^5.2.0",
"cz-conventional-changelog": "^2.1.0",
"enzyme": "^3.6.0",
"enzyme-adapter-react-16": "^1.4.0",
"eslint": "^5.2.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.4.0",
"husky": "^1.1.2",
"jest": "^23.4.1",
"jest": "^23.6.0",
"prettier": "^1.14.3",
"react": "^16.4.1",
"react-dom": "^16.4.1",
"rollup": "^0.66.0",
"rollup-plugin-babel": "^3.0.3",
"rollup": "^0.66.6",
"rollup-plugin-babel": "^4.0.3",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-css-only": "^0.4.0",
"rollup-plugin-filesize": "^5.0.0",
"rollup-plugin-jsx": "^1.0.3",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-uglify": "^6.0.0",
"semantic-release": "^15.8.1"
"semantic-release": "^15.9.17"
},
"jest": {
"collectCoverage": true,
Expand Down
9 changes: 5 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,18 @@ export default {
input: 'src/index.js',
output: {
file: 'dist/index.js',
format: 'cjs'
format: 'cjs',
},
external: ['react', 'prop-types', 'react-dom', 'lodash.isequal'],
plugins: [
css({ output: 'dist/picky.css' }),
babel({
exclude: 'node_modules/**'
exclude: 'node_modules/**',
externalHelpers: true,
}),
// resolve(),
// commonjs(),
isProduction && uglify(),
isProduction && filesize()
]
isProduction && filesize(),
],
};
Loading

0 comments on commit 548fb48

Please sign in to comment.