File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/ko/src/webpack/loaders Expand file tree Collapse file tree 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 {
1717 test : / \. w o r k e r .[ j t ] s $ / ,
1818 loader : this . WORKER_LOADER ,
1919 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 ) ,
2121 options : {
2222 inline : 'fallback' ,
2323 } ,
@@ -26,7 +26,7 @@ class Script {
2626 test : / \. m ? ( t | j ) s x ? $ / ,
2727 include : ( input : string ) => {
2828 // 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 ) ) {
3030 return true ;
3131 } else if ( input . includes ( 'antlr4-c3' ) ) {
3232 return true ;
You can’t perform that action at this time.
0 commit comments