Skip to content
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

perf(webpack): update sourcemaps for faster builds #7115

Merged
merged 4 commits into from
Mar 6, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scopes/react/react/webpack/webpack.config.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function (isEnvProduction = false): Configuration {

return {
// TODO: make the dev tool according to shouldUseSourceMap and isEnvProduction
// devtool: 'inline-source-map',
// devtool: 'eval-cheap-source-map',
resolve: {
// These are the reasonable defaults supported by the Node ecosystem.
// We also include JSX as a common component filename extension to support
Expand Down
2 changes: 1 addition & 1 deletion scopes/ui-foundation/ui/webpack/webpack.dev.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function devConfig(workspaceDir, entryFiles, title): WebpackConfigWithDev
// improves HMR - assume node_modules might change
snapshot: { managedPaths: [] },

devtool: 'inline-source-map',
devtool: 'eval-cheap-source-map',

// Entry point of app
entry: {
Expand Down
2 changes: 1 addition & 1 deletion scopes/webpack/webpack/config/webpack.dev.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function configFactory(
// Environment mode
mode: 'development',

devtool: 'inline-source-map',
devtool: 'eval-cheap-source-map',

// Entry point of app
entry: entryFiles.map((filePath) => resolveWorkspacePath(filePath)),
Expand Down