@@ -2,7 +2,6 @@ import path from 'path'
22import { createFilter } from 'rollup-pluginutils'
33import Concat from 'concat-with-sourcemaps'
44import Loaders from './loaders'
5- import normalizePath from './utils/normalize-path'
65
76/**
87 * The options that could be `boolean` or `object`
@@ -166,13 +165,13 @@ export default (options = {}) => {
166165 const getExtracted = ( ) => {
167166 let fileName = `${ path . basename ( file , path . extname ( file ) ) } .css`
168167 if ( typeof postcssLoaderOptions . extract === 'string' ) {
169- fileName = path . isAbsolute ( postcssLoaderOptions . extract ) ? normalizePath ( path . relative ( dir , postcssLoaderOptions . extract ) ) : normalizePath ( postcssLoaderOptions . extract )
168+ fileName = path . isAbsolute ( postcssLoaderOptions . extract ) ? path . relative ( dir , postcssLoaderOptions . extract ) : postcssLoaderOptions . extract
170169 }
171170
172171 const concat = new Concat ( true , fileName , '\n' )
173172 const entries = [ ...extracted . values ( ) ]
174173 const { modules, facadeModuleId } = bundle [
175- normalizePath ( path . relative ( dir , file ) )
174+ path . relative ( dir , file )
176175 ]
177176
178177 if ( modules ) {
@@ -186,7 +185,7 @@ export default (options = {}) => {
186185 }
187186
188187 for ( const result of entries ) {
189- const relative = normalizePath ( path . relative ( dir , result . id ) )
188+ const relative = path . relative ( dir , result . id )
190189 const map = result . map || null
191190 if ( map ) {
192191 map . file = fileName
0 commit comments