Skip to content

Update babel-loader to the latest version 🚀 #890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
2 commits merged into from
Aug 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,477 changes: 1,338 additions & 1,139 deletions package-lock.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@
"passport-local": "^1.0.0"
},
"devDependencies": {
"babel-core": "~6.26.3",
"@babel/core": "7.0.0",
"@babel/plugin-proposal-decorators": "^7.0.0",
"@babel/plugin-transform-regenerator": "7.0.0",
"@babel/plugin-transform-runtime": "7.0.0",
"@babel/polyfill": "7.0.0",
"@babel/preset-env": "7.0.0",
"@babel/preset-react": "7.0.0",
"@babel/runtime": "7.0.0",
"babel-eslint": "^9.0.0",
"babel-loader": "~7.1.4",
"babel-plugin-transform-decorators-legacy": "^1.3.5",
"babel-loader": "~8.0.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-regenerator": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.23.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"babel-runtime": "~6.26.0",
"css-loader": "~1.0.0",
"eslint": "^5.0.0",
"eslint-plugin-jest": "^21.17.0",
Expand Down
2 changes: 0 additions & 2 deletions src/components/SliderWrap/SliderWrap.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,3 @@ export default class SliderWrap extends React.Component {
);
}
}

module.exports = SliderWrap;
2 changes: 1 addition & 1 deletion src/dashboard/AppData.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ let AppData = createClass({
}
});

module.exports = AppData;
export default AppData;
5 changes: 1 addition & 4 deletions src/dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const PARSE_DOT_COM_SERVER_INFO = {
parseServerVersion: 'Parse.com',
}

class Dashboard extends React.Component {
export default class Dashboard extends React.Component {
constructor(props) {
super();
this.state = {
Expand Down Expand Up @@ -313,6 +313,3 @@ class Dashboard extends React.Component {
);
}
}


module.exports = Dashboard;
2 changes: 1 addition & 1 deletion src/dashboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import installDevTools from 'immutable-devtools';
import React from 'react';
import ReactDOM from 'react-dom';
import Dashboard from './Dashboard';
import 'babel-polyfill';
import '@babel/polyfill';

require('stylesheets/fonts.scss');
installDevTools(Immutable);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/AccountManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ let AccountManager = {
},
};

module.exports = AccountManager;
export default AccountManager;
6 changes: 3 additions & 3 deletions testing/preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
var babel = require('babel-core');
var babel = require('@babel/core');
var extractClassnames = require('./extractClassnames');

module.exports = {
Expand All @@ -26,8 +26,8 @@ module.exports = {
return babel.transform(src, {
filename: filename,
retainLines: true,
plugins: ['transform-decorators-legacy', 'transform-object-rest-spread', 'transform-regenerator', 'transform-runtime'],
presets: ['react', 'env']
plugins: [["@babel/plugin-proposal-decorators", { "legacy": true }], '@babel/transform-regenerator', '@babel/transform-runtime'],
presets: ['@babel/preset-react', '@babel/preset-env']
// Remove propTypes for tests so we don't have to keep unmocking lib/PropTypes
// Also it's more representative of the production environment
//plugins: [ 'babel-plugin-remove-proptypes' ]
Expand Down
6 changes: 3 additions & 3 deletions webpack/base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ module.exports = {
use: {
loader: 'babel-loader',
query: {
plugins: ['transform-decorators-legacy', 'transform-object-rest-spread', 'transform-regenerator', 'transform-runtime'],
presets: ['react', 'env']
}
plugins: [["@babel/plugin-proposal-decorators", { "legacy": true }], '@babel/transform-regenerator', '@babel/transform-runtime'],
presets: ['@babel/preset-react', '@babel/preset-env']
},
},
}, {
test: /\.scss$/,
Expand Down