Skip to content

Commit

Permalink
feat(webpack): change devtool to cheap-module-source-map
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwong committed Feb 10, 2023
1 parent c92fda5 commit 93c7139
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/wild-ladybugs-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@yueqing/webpack': patch
---

change devtool to cheap-module-source-map
3 changes: 1 addition & 2 deletions packages/webpack/src/build/setBasic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ const getBasicBase: GetConfig = ({ userConfig, nodeEnv }) => ({
export const setBasic: () => SetConfigHelp = () => ({
development: ctx => ({
...getBasicBase(ctx),
// https://www.webpackjs.com/guides/build-performance/#devtool
devtool: 'eval-cheap-module-source-map',
devtool: 'cheap-module-source-map',
devServer: {
historyApiFallback: true,
hot: true,
Expand Down

0 comments on commit 93c7139

Please sign in to comment.