Skip to content

In production build CSS Sourcemaps in codesplit chunks are "duplicated", contained in both the .map file and the .js file #1110

Closed
@jakub300

Description

@jakub300

Steps to reproduce:

  1. Generate project with vue-router, my exact answers:
? Generate project in current directory? Yes
? Project name vue-app
? Project description A Vue.js project
? Author Jakub Bogucki <[email protected]>
? Vue build runtime
? Install vue-router? Yes
? Use ESLint to lint your code? No
? Setup unit tests No
? Setup e2e tests with Nightwatch? No
  1. Install dependencies
  2. edit src/routes/index.js:
    1. remove import HelloWorld from '@/components/HelloWorld'
    2. replace component: HelloWorld with component: () => import('@/components/HelloWorld')
  3. build project for production
  4. open dist/static/js/0.[hash].js
  5. format it so you can see it well :)
  6. somewhere in the file you should see something like that:
    image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions