Skip to content

Commit

Permalink
Update build config
Browse files Browse the repository at this point in the history
  • Loading branch information
shoonia committed Oct 6, 2023
1 parent aa1c2b8 commit 3a16886
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 23 deletions.
15 changes: 0 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"@typescript-eslint/parser": "^6.7.4",
"autoprefixer": "^10.4.16",
"babel-loader": "^9.1.3",
"babel-plugin-const-enum": "^1.2.0",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.8.1",
"css-minimizer-webpack-plugin": "^5.0.1",
Expand Down
14 changes: 7 additions & 7 deletions webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,13 @@ module.exports = ({ NODE_ENV }) => {
cacheCompression: false,
compact: isProd,
presets: [
'@babel/typescript',
[
'@babel/preset-typescript',
{
optimizeConstEnums: true,
onlyRemoveTypeImports: true,
},
],
],
plugins: [
[
Expand All @@ -153,12 +159,6 @@ module.exports = ({ NODE_ENV }) => {
importSource: 'preact',
},
],
[
'const-enum',
{
transform: 'constObject',
},
],
],
},
},
Expand Down

0 comments on commit 3a16886

Please sign in to comment.