Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

chore: entryPath check should work on Windows #838

Merged
merged 1 commit into from
Mar 20, 2019

Conversation

rosen-vladimirov
Copy link
Contributor

In a previous commit we've changed the check when to execute the bundle-config-loader to be based on full path. However, the created RegExp does not match anything on Windows as the paths contain \, which are used for escape symbol inside RegExp.
Escape the \ and update all webpack configs with the new RegExp.

PR Checklist

What is the current behavior?

Application built with Webpack on Windows fail at runtime.

What is the new behavior?

You can build applications with Webpack on all OSes.

Fixes/Implements/Closes #[Issue Number].

In a previous commit we've changed the check when to execute the `bundle-config-loader` to be based on full path. However, the created RegExp does not match anything on Windows as the paths contain `\`, which are used for escape symbol inside RegExp.
Escape the `\` and update all webpack configs with the new RegExp.
@rosen-vladimirov rosen-vladimirov self-assigned this Mar 20, 2019
@cla-bot cla-bot bot added the cla: yes label Mar 20, 2019
@ghost ghost added the review label Mar 20, 2019
@rosen-vladimirov rosen-vladimirov merged commit dc31083 into master Mar 20, 2019
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-windows branch March 20, 2019 18:05
@ghost ghost removed bug review labels Mar 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants