Skip to content

Commit b12153c

Browse files
committed
Fix Windows issue
1 parent 66235e2 commit b12153c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
# 2.0.2
4+
5+
- Make friendlier to Windows
6+
37
# 2.0.0
48

59
- Update to `ts-loader` 3.1.1 and update devDependencies

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const findIndexAndRules = (rulesSource, ruleMatcher) => {
2727
* Given a rule, return if it uses a specific loader.
2828
*/
2929
const createLoaderMatcher = loader => rule =>
30-
rule.loader && rule.loader.indexOf(`/${loader}/`) !== -1
30+
rule.loader && rule.loader.indexOf(`${path.sep}${loader}${path.sep}`) !== -1
3131

3232
/**
3333
* Get the existing file-loader config.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-app-rewire-typescript",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Add ts-loader to a react-app-rewired config.",
55
"main": "index.js",
66
"files": ["index.js"],

0 commit comments

Comments
 (0)