File tree 2 files changed +6
-9
lines changed
2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -659,11 +659,11 @@ class MiniCssExtractPlugin {
659
659
const externalsSource = new ConcatSource ( ) ;
660
660
661
661
for ( const m of usedModules ) {
662
- if ( / ^ @ i m p o r t u r l / . test ( m . content ) ) {
662
+ let content = m . content . toString ( ) ;
663
+
664
+ if ( / ^ @ i m p o r t u r l / . test ( content ) ) {
663
665
// HACK for IE
664
666
// http://stackoverflow.com/a/14676665/1458162
665
- let { content } = m ;
666
-
667
667
if ( m . media ) {
668
668
// insert media into the @import
669
669
// this is rar
@@ -681,17 +681,14 @@ class MiniCssExtractPlugin {
681
681
if ( m . sourceMap ) {
682
682
source . add (
683
683
new SourceMapSource (
684
- m . content ,
684
+ content ,
685
685
m . readableIdentifier ( requestShortener ) ,
686
686
m . sourceMap
687
687
)
688
688
) ;
689
689
} else {
690
690
source . add (
691
- new OriginalSource (
692
- m . content ,
693
- m . readableIdentifier ( requestShortener )
694
- )
691
+ new OriginalSource ( content , m . readableIdentifier ( requestShortener ) )
695
692
) ;
696
693
}
697
694
source . add ( '\n' ) ;
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ export function pitch(request) {
225
225
return {
226
226
identifier : module . identifier ( ) ,
227
227
context : module . context ,
228
- content,
228
+ content : Buffer . from ( content ) ,
229
229
media,
230
230
sourceMap,
231
231
} ;
You can’t perform that action at this time.
0 commit comments