File tree Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import {
11
11
AUTO_PUBLIC_PATH ,
12
12
ABSOLUTE_PUBLIC_PATH ,
13
13
SINGLE_DOT_PATH_SEGMENT ,
14
- DOUBLE_DOT_PATH_SEGMENT ,
15
14
compareModulesByIdentifier ,
16
15
} from "./utils" ;
17
16
@@ -1042,10 +1041,6 @@ class MiniCssExtractPlugin {
1042
1041
new RegExp ( SINGLE_DOT_PATH_SEGMENT , "g" ) ,
1043
1042
"."
1044
1043
) ;
1045
- content = content . replace (
1046
- new RegExp ( DOUBLE_DOT_PATH_SEGMENT , "g" ) ,
1047
- ".."
1048
- ) ;
1049
1044
content = content . replace ( new RegExp ( AUTO_PUBLIC_PATH , "g" ) , undoPath ) ;
1050
1045
1051
1046
if ( module . sourceMap ) {
Original file line number Diff line number Diff line change 6
6
AUTO_PUBLIC_PATH ,
7
7
ABSOLUTE_PUBLIC_PATH ,
8
8
SINGLE_DOT_PATH_SEGMENT ,
9
- DOUBLE_DOT_PATH_SEGMENT ,
10
9
stringifyRequest ,
11
10
} from "./utils" ;
12
11
import schema from "./loader-options.json" ;
@@ -199,9 +198,10 @@ export function pitch(request) {
199
198
const isAbsolutePublicPath = / ^ [ a - z A - Z ] [ a - z A - Z \d + \- . ] * ?: / . test ( publicPath ) ;
200
199
const publicPathForExtract = isAbsolutePublicPath
201
200
? publicPath
202
- : `${ ABSOLUTE_PUBLIC_PATH } ${ publicPath
203
- . replace ( / \. / g, SINGLE_DOT_PATH_SEGMENT )
204
- . replace ( / \. \. / g, DOUBLE_DOT_PATH_SEGMENT ) } `;
201
+ : `${ ABSOLUTE_PUBLIC_PATH } ${ publicPath . replace (
202
+ / \. / g,
203
+ SINGLE_DOT_PATH_SEGMENT
204
+ ) } `;
205
205
206
206
this . importModule (
207
207
`${ this . resourcePath } .webpack[javascript/auto]!=!${ request } ` ,
Original file line number Diff line number Diff line change @@ -57,8 +57,6 @@ const AUTO_PUBLIC_PATH = "__mini_css_extract_plugin_public_path_auto__";
57
57
const ABSOLUTE_PUBLIC_PATH = "webpack:///mini-css-extract-plugin/" ;
58
58
const SINGLE_DOT_PATH_SEGMENT =
59
59
"__mini_css_extract_plugin_single_dot_path_segment__" ;
60
- const DOUBLE_DOT_PATH_SEGMENT =
61
- "__mini_css_extract_plugin_double_dot_path_segment__" ;
62
60
63
61
function isAbsolutePath ( str ) {
64
62
return path . posix . isAbsolute ( str ) || path . win32 . isAbsolute ( str ) ;
@@ -113,6 +111,5 @@ export {
113
111
AUTO_PUBLIC_PATH ,
114
112
ABSOLUTE_PUBLIC_PATH ,
115
113
SINGLE_DOT_PATH_SEGMENT ,
116
- DOUBLE_DOT_PATH_SEGMENT ,
117
114
stringifyRequest ,
118
115
} ;
You can’t perform that action at this time.
0 commit comments