Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Commit

Permalink
Pin babel runtime version and upgrade babel (#724)
Browse files Browse the repository at this point in the history
* Pin babel runtime version and upgrade babel

* Upgrade eslint
  • Loading branch information
TrySound authored and istarkov committed Aug 6, 2018
1 parent 53463fb commit 03f3fed
Show file tree
Hide file tree
Showing 8 changed files with 918 additions and 808 deletions.
11 changes: 10 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,27 @@
"no-class-assign": [0],
"no-plusplus": [0],
"no-prototype-builtins": [0],
"no-return-assign": [0],
"max-len": ["error", { "code": 120, "ignorePattern": "^test", "ignoreUrls": true }],
"lines-between-class-members": [0],
"prefer-destructuring": [0],
"import/no-unresolved": [0],
"import/no-extraneous-dependencies": [0],
"import/extensions": [0],
"import/prefer-default-export": [0],
"import/no-useless-path-segments": [0],
"jsx-a11y/label-has-for": [0],
"react/forbid-prop-types": [0],
"react/prop-types": [0],
"react/prefer-stateless-function": [0],
"react/no-multi-comp": [0],
"react/sort-comp": [0],
"react/jsx-filename-extension": [0],
"prettier/prettier": ["error", {"semi": false, "trailingComma": "es5", "singleQuote": true}]
"prettier/prettier": ["error", {"semi": false, "trailingComma": "es5", "singleQuote": true}],
"react/destructuring-assignment": [0],
"react/jsx-curly-brace-presence": [0],
"react/no-unused-prop-types": [0],
"react/require-default-props": [0],
"react/button-has-type": [0]
}
}
12 changes: 6 additions & 6 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
"gzipped": 4220
},
"lib/packages/recompose/dist/Recompose.esm.js": {
"bundled": 31344,
"minified": 14863,
"gzipped": 3459,
"bundled": 31320,
"minified": 14839,
"gzipped": 3451,
"treeshaked": {
"rollup": {
"code": 364,
"import_statements": 364
"code": 340,
"import_statements": 340
},
"webpack": {
"code": 1893
"code": 1869
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {

if (process.env.NODE_ENV === 'cjs' || process.env.NODE_ENV === 'test') {
module.exports.plugins.push(
['@babel/transform-runtime', { useBuiltIns: true }],
['@babel/transform-runtime'],
'@babel/transform-modules-commonjs'
)
}
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@
]
},
"devDependencies": {
"@babel/cli": "^7.0.0-beta.55",
"@babel/core": "^7.0.0-beta.55",
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.55",
"@babel/plugin-transform-modules-commonjs": "^7.0.0-beta.55",
"@babel/plugin-transform-runtime": "^7.0.0-beta.55",
"@babel/preset-env": "^7.0.0-beta.55",
"@babel/preset-react": "^7.0.0-beta.55",
"@babel/runtime": "^7.0.0-beta.55",
"@babel/cli": "^7.0.0-beta.56",
"@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",
"@babel/runtime": "^7.0.0-beta.56",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^6.0.4",
"babel-eslint": "^9.0.0-beta.3",
"babel-jest": "^22.4.3",
"baconjs": "^0.7.84",
"chalk": "^1.1.1",
Expand All @@ -54,13 +54,13 @@
"create-react-class": "^15.5.0",
"cross-env": "^4.0.0",
"enzyme": "^3.3.0",
"eslint": "^3.19.0",
"eslint-config-airbnb": "^14.1.0",
"eslint-config-prettier": "^1.7.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^4.0.0",
"eslint": "^5.3.0",
"eslint-config-airbnb": "^17.0.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-prettier": "^2.0.1",
"eslint-plugin-react": "^6.10.3",
"eslint-plugin-react": "^7.10.0",
"flow-bin": "^0.72.0",
"flyd": "^0.2.4",
"husky": "^0.13.3",
Expand All @@ -74,7 +74,7 @@
"react-dom": "^16.3.1",
"readline-sync": "^1.2.21",
"rollup": "^0.62.0",
"rollup-plugin-babel": "^4.0.0-beta.7",
"rollup-plugin-babel": "^4.0.0-beta.8",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-replace": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const isExternal = id =>
const getBabelOptions = ({ useESModules }) => ({
exclude: '**/node_modules/**',
runtimeHelpers: true,
plugins: [['@babel/transform-runtime', { useESModules, useBuiltIns: true }]],
plugins: [['@babel/transform-runtime', { useESModules }]],
})

const matchSnapshot = process.env.SNAPSHOT === 'match'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/recompose/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"main": "dist/Recompose.cjs.js",
"module": "dist/Recompose.esm.js",
"dependencies": {
"@babel/runtime": "^7.0.0-beta.55",
"@babel/runtime": "7.0.0-beta.56",
"change-emitter": "^0.1.2",
"fbjs": "^0.8.1",
"hoist-non-react-statics": "^2.3.1",
Expand Down
11 changes: 3 additions & 8 deletions src/packages/recompose/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
# yarn lockfile v1


"@babel/runtime@^7.0.0-beta.55":
version "7.0.0-beta.55"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.0.0-beta.55.tgz#0bc33aa5a6ac0b012f37e25b9e6aaa2e489a916b"
"@babel/runtime@^7.0.0-beta.56":
version "7.0.0-beta.56"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.0.0-beta.56.tgz#cda612dffd5b1719a7b8e91e3040bd6ae64de8b0"
dependencies:
core-js "^2.5.7"
regenerator-runtime "^0.12.0"

asap@~2.0.3:
Expand All @@ -21,10 +20,6 @@ core-js@^1.0.0:
version "1.2.7"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636"

core-js@^2.5.7:
version "2.5.7"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.7.tgz#f972608ff0cead68b841a16a932d0b183791814e"

encoding@^0.1.11:
version "0.1.12"
resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb"
Expand Down
Loading

0 comments on commit 03f3fed

Please sign in to comment.