Skip to content

Enable source maps for DevTools production builds #19769

Closed
@bvaughn

Description

@bvaughn

Source maps are currently disabled for DevTools production builds:

devtool: __DEV__ ? 'cheap-module-eval-source-map' : false,

devtool: __DEV__ ? 'cheap-module-eval-source-map' : false,

devtool: __DEV__ ? 'cheap-module-eval-source-map' : false,

devtool: __DEV__ ? 'cheap-module-eval-source-map' : false,

I don't remember if there's a good reason for this, but it makes debugging production builds of DevTools difficult (on the occasion that it needs to be done).

Let's enable cheap source maps for DEV mode (like most configs already do) and full source maps for the production builds. Might be worth comparing before and after build times and bundle sizes for the extensions. We may also need to explicitly add the source maps to the extension manifests web_accessible_resources.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions