Add a flag to dev server to generate sourcemaps #719

Merged
nmanandhar merged 1 commit from sourcemaps into master 2022-02-07 09:18:07 +01:00
nmanandhar commented 2022-02-05 14:31:33 +01:00 (Migrated from github.com)

To generate source maps, a developer can add the --source-map flag to the dev script or run npm run dev -- --source-map.

The source-map flag has not been mentioned in the readme file due to the following reasoning

  1. Currently generating sourceMap will disable the addPureComments code
  2. Source maps might slow the build process
  3. People don't seem to be looking for sourceMaps till now
  4. Developers who want sourceMaps will probably look at the code and easily find the option
To generate source maps, a developer can add the --source-map flag to the dev script or run npm run dev -- --source-map. The source-map flag has not been mentioned in the readme file due to the following reasoning 1. Currently generating sourceMap will disable the addPureComments code 2. Source maps might slow the build process 2. People don't seem to be looking for sourceMaps till now 3. Developers who want sourceMaps will probably look at the code and easily find the option
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/dev!719
No description provided.