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 {
1111 AUTO_PUBLIC_PATH ,
1212 ABSOLUTE_PUBLIC_PATH ,
1313 SINGLE_DOT_PATH_SEGMENT ,
14- DOUBLE_DOT_PATH_SEGMENT ,
1514 compareModulesByIdentifier ,
1615} from "./utils" ;
1716
@@ -1042,10 +1041,6 @@ class MiniCssExtractPlugin {
10421041 new RegExp ( SINGLE_DOT_PATH_SEGMENT , "g" ) ,
10431042 "."
10441043 ) ;
1045- content = content . replace (
1046- new RegExp ( DOUBLE_DOT_PATH_SEGMENT , "g" ) ,
1047- ".."
1048- ) ;
10491044 content = content . replace ( new RegExp ( AUTO_PUBLIC_PATH , "g" ) , undoPath ) ;
10501045
10511046 if ( module . sourceMap ) {
Original file line number Diff line number Diff line change 66 AUTO_PUBLIC_PATH ,
77 ABSOLUTE_PUBLIC_PATH ,
88 SINGLE_DOT_PATH_SEGMENT ,
9- DOUBLE_DOT_PATH_SEGMENT ,
109 stringifyRequest ,
1110} from "./utils" ;
1211import schema from "./loader-options.json" ;
@@ -199,9 +198,10 @@ export function pitch(request) {
199198 const isAbsolutePublicPath = / ^ [ a - z A - Z ] [ a - z A - Z \d + \- . ] * ?: / . test ( publicPath ) ;
200199 const publicPathForExtract = isAbsolutePublicPath
201200 ? 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+ ) } `;
205205
206206 this . importModule (
207207 `${ 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__";
5757const ABSOLUTE_PUBLIC_PATH = "webpack:///mini-css-extract-plugin/" ;
5858const SINGLE_DOT_PATH_SEGMENT =
5959 "__mini_css_extract_plugin_single_dot_path_segment__" ;
60- const DOUBLE_DOT_PATH_SEGMENT =
61- "__mini_css_extract_plugin_double_dot_path_segment__" ;
6260
6361function isAbsolutePath ( str ) {
6462 return path . posix . isAbsolute ( str ) || path . win32 . isAbsolute ( str ) ;
@@ -113,6 +111,5 @@ export {
113111 AUTO_PUBLIC_PATH ,
114112 ABSOLUTE_PUBLIC_PATH ,
115113 SINGLE_DOT_PATH_SEGMENT ,
116- DOUBLE_DOT_PATH_SEGMENT ,
117114 stringifyRequest ,
118115} ;
You can’t perform that action at this time.
0 commit comments