Skip to content

Commit

Permalink
chore: update babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
kelp404 committed May 12, 2022
1 parent 8a87df5 commit 998a1a2
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
module.exports = {
presets: ['@babel/preset-env', '@babel/preset-react'],
plugins: ['@babel/plugin-proposal-class-properties'],
};
2 changes: 1 addition & 1 deletion example/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require('babel-polyfill');
require('@babel/polyfill');
const progress = require('nprogress');
const React = require('react');
const ReactDOM = require('react-dom');
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"@kelp404/changelog.config": "0.1.0",
"axios": "0.26.1",
"babel-loader": "8.2.4",
"babel-polyfill": "6.26.0",
"classnames": "2.3.1",
"concurrently": "7.1.0",
"config": "3.3.7",
Expand Down
6 changes: 1 addition & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const MODE = process.env.NODE_ENV || 'development';
const IS_PRODUCTION = MODE === 'production';

module.exports = () => ({
target: 'web',
target: ['web', 'es5'],
mode: MODE,
entry: {
web: path.join(__dirname, 'example', 'app.js'),
Expand Down Expand Up @@ -38,10 +38,6 @@ module.exports = () => ({
options: {
presets: [
'@babel/preset-env',
'@babel/react',
],
plugins: [
'@babel/plugin-proposal-class-properties',
],
},
},
Expand Down

0 comments on commit 998a1a2

Please sign in to comment.