Skip to content

Devtool uses eval-cheap-module-source-map by default #6398

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

Closed
keeplz opened this issue Apr 4, 2021 · 0 comments · Fixed by #6402
Closed

Devtool uses eval-cheap-module-source-map by default #6398

keeplz opened this issue Apr 4, 2021 · 0 comments · Fixed by #6402

Comments

@keeplz
Copy link

keeplz commented Apr 4, 2021

What problem does this feature solve?

When i want to use sourcemap like 'eval-source-map' with chainWebapck, it doesn't work.

Because it will be changed by cli in silence, is this reasonable? or it is a bug.

api.chainWebpack(webpackConfig => {
if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test') {
webpackConfig
.devtool('eval-cheap-module-source-map')

For now, i use configureWebpack to get this.

What does the proposed API look like?

if user user set devtool in chainWebapck, cli shouldn't change it in silence, or even a waning will be better

@keeplz keeplz changed the title Default devtool uses eval-cheap-module-source-map Devtool uses eval-cheap-module-source-map by default Apr 4, 2021
fangbinwei added a commit to fangbinwei/vue-cli that referenced this issue Apr 6, 2021
Respect the existing 'devtool' when running dev server

Fixes vuejs#6398
fangbinwei added a commit to fangbinwei/vue-cli that referenced this issue Apr 6, 2021
Respect the existing 'devtool' when running dev server

Fixes vuejs#6398
haoqunjiang pushed a commit that referenced this issue Apr 7, 2021
Respect the existing 'devtool' when running dev server

Fixes #6398
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants