Skip to content

Commit

Permalink
Upgrade babel to beta 56 (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound authored Aug 5, 2018
1 parent b15947f commit 81f8592
Show file tree
Hide file tree
Showing 4 changed files with 505 additions and 530 deletions.
18 changes: 9 additions & 9 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
"gzipped": 2415
},
"dist/react-powerplug.cjs.js": {
"bundled": 20024,
"minified": 10036,
"gzipped": 2413
"bundled": 20000,
"minified": 10012,
"gzipped": 2407
},
"dist/react-powerplug.esm.js": {
"bundled": 19394,
"minified": 9498,
"gzipped": 2276,
"bundled": 19370,
"minified": 9474,
"gzipped": 2267,
"treeshaked": {
"rollup": {
"code": 228,
"import_statements": 228
"code": 204,
"import_statements": 204
},
"webpack": {
"code": 1530
"code": 1506
}
}
}
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@
},
"homepage": "https://github.com/renatorib/react-powerplug",
"dependencies": {
"@babel/runtime": "7.0.0-beta.54"
"@babel/runtime": "7.0.0-beta.56"
},
"devDependencies": {
"@babel/core": "^7.0.0-beta.54",
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.54",
"@babel/plugin-transform-modules-commonjs": "^7.0.0-beta.54",
"@babel/plugin-transform-runtime": "^7.0.0-beta.54",
"@babel/preset-env": "^7.0.0-beta.54",
"@babel/preset-react": "^7.0.0-beta.54",
"@babel/core": "^7.0.0-beta.56",
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.56",
"@babel/plugin-transform-modules-commonjs": "^7.0.0-beta.56",
"@babel/plugin-transform-runtime": "^7.0.0-beta.56",
"@babel/preset-env": "^7.0.0-beta.56",
"@babel/preset-react": "^7.0.0-beta.56",
"@types/react": "^16.3.13",
"all-contributors-cli": "^4.11.2",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^8.2.3",
"babel-eslint": "^9.0.0-beta.3",
"babel-jest": "^23.0.0",
"cross-env": "^5.0.5",
"dtslint": "^0.3.0",
Expand All @@ -91,7 +91,7 @@
"react-test-renderer": "^16.2.0",
"rimraf": "^2.6.1",
"rollup": "^0.63.4",
"rollup-plugin-babel": "^4.0.0-beta.7",
"rollup-plugin-babel": "^4.0.0-beta.8",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-size-snapshot": "^0.6.1",
Expand Down
11 changes: 3 additions & 8 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,14 @@ const input = './src/index.js'

const external = id => !id.startsWith('.') && !id.startsWith('/')

const globals = { react: 'React' }

const name = 'ReactPowerPlug'

const globals = { react: 'React' }

const getBabelOptions = ({ useESModules }) => ({
exclude: '**/node_modules/**',
runtimeHelpers: true,
plugins: [
[
'@babel/plugin-transform-runtime',
{ polyfill: false, useBuiltIns: true, useESModules },
],
],
plugins: [['@babel/plugin-transform-runtime', { useESModules }]],
})

export default [
Expand Down
Loading

0 comments on commit 81f8592

Please sign in to comment.