Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
mikozet committed Dec 13, 2024
1 parent 0a98ede commit 81591a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
7 changes: 1 addition & 6 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"presets": ["@babel/preset-env", "@babel/react"],
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/proposal-class-properties",
"@babel/proposal-object-rest-spread"
]
"presets": ["@babel/preset-env", "@babel/react"]
}
23 changes: 0 additions & 23 deletions webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,19 +113,8 @@ export default () => {
'%': getPath(PATH_ASSETS),
locales: getPath(PATH_LOCALES),
'~': getPath(PATH_SRC),
crypto: require.resolve('crypto-browserify'),
stream: require.resolve('stream-browserify'),
path: require.resolve('path-browserify'),
},
},
node: {
fs: 'empty',
crypto: 'empty',
path: 'empty',
stream: 'empty',
Buffer: true,
process: true,
},
module: {
rules: [
{
Expand All @@ -136,14 +125,6 @@ export default () => {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env', '@babel/react'],
plugins: [
'@babel/plugin-transform-runtime',
'@babel/proposal-class-properties',
'@babel/proposal-object-rest-spread',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-transform-modules-commonjs',
],
},
},
'eslint-loader',
Expand Down Expand Up @@ -211,10 +192,6 @@ export default () => {
new webpack.DefinePlugin({
'process.env': envData,
}),
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
process: 'process/browser',
}),
],
};
};

0 comments on commit 81591a2

Please sign in to comment.