Skip to content

chore: remove dud webpack loader exclude rule - #2370

Merged
1 commit merged into
masterfrom
chore/remove-webpack-dud-excludes
Nov 18, 2021
Merged

chore: remove dud webpack loader exclude rule#2370
1 commit merged into
masterfrom
chore/remove-webpack-dud-excludes

Conversation

@ghost

@ghost ghost commented Nov 16, 2021

Copy link
Copy Markdown

When providing strings, Webpack matches absolute paths so the current '/node_modules' rule excludes nothing.

A string: To match the input must start with the provided string. I. e. an absolute directory path, or absolute path to the file.

https://webpack.js.org/configuration/module/#condition

Fixing this by using a regex /node_modules/ does not improve build performance at all since imports via node_modules will likely never match the test rule (.ts files) so this exclude is not useful.

When providing strings, Webpack matches absolute paths so the current
rule excludes nothing.

Fixing this by using a regex `/node_modules/` does not improve build
performance at all since imports via node_modules will likely never
match the `test` rule (.ts files) so this exclude is not useful.
@github-actions

Copy link
Copy Markdown
Contributor
Messages
📖

This PR will not trigger a new version. It doesn't include any commit message with feat or fix.

Generated by 🚫 dangerJS against 04e8ab9

@ghost
ghost marked this pull request as ready for review November 16, 2021 13:49
@ghost
ghost self-requested a review as a code owner November 16, 2021 13:49
@ghost
ghost merged commit 6cadb51 into master Nov 18, 2021
@ghost
ghost deleted the chore/remove-webpack-dud-excludes branch November 18, 2021 17:12
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant