File tree 2 files changed +7
-2
lines changed
packages/ko/src/webpack/loaders
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' ko ' : patch
3
+ ---
4
+
5
+ support window path with \\
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class Script {
17
17
test : / \. w o r k e r .[ j t ] s $ / ,
18
18
loader : this . WORKER_LOADER ,
19
19
include : ( input : string ) =>
20
- input . includes ( ' dt-react-monaco-editor/ lib/ languages' ) ,
20
+ / d t - r e a c t - m o n a c o - e d i t o r [ \\ / ] l i b [ \\ / ] l a n g u a g e s / . test ( input ) ,
21
21
options : {
22
22
inline : 'fallback' ,
23
23
} ,
@@ -26,7 +26,7 @@ class Script {
26
26
test : / \. m ? ( t | j ) s x ? $ / ,
27
27
include : ( input : string ) => {
28
28
// internal modules dt-common compatible
29
- if ( input . includes ( ' node_modules/ dt-common/ src/' ) ) {
29
+ if ( / n o d e _ m o d u l e s [ \\ / ] d t - c o m m o n [ \\ / ] s r c [ \\ / ] / . test ( input ) ) {
30
30
return true ;
31
31
} else if ( input . includes ( 'antlr4-c3' ) ) {
32
32
return true ;
You can’t perform that action at this time.
0 commit comments