File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import path from 'path';
3
3
import webpack from 'webpack' ;
4
4
import sources from 'webpack-sources' ;
5
5
6
- const { RawSource , ConcatSource } = sources ;
6
+ const { ConcatSource } = sources ;
7
7
const { Template } = webpack ;
8
8
9
9
const NS = path . dirname ( fs . realpathSync ( __filename ) ) ;
@@ -38,10 +38,7 @@ class CssModule extends webpack.Module {
38
38
this . sourceMap = dependency . sourceMap ;
39
39
}
40
40
41
- source ( ) {
42
- // TODO add webpack support for omitting js source
43
- return new RawSource ( '// extracted by mini-css-extract-plugin' ) ;
44
- }
41
+ // no source() so webpack doesn't do add stuff to the bundle
45
42
46
43
size ( ) {
47
44
return 0 ;
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ export function pitch(request) {
107
107
} catch ( e ) {
108
108
return callback ( e ) ;
109
109
}
110
- let resultSource = '' ;
110
+ let resultSource = '// extracted by mini-css-extract-plugin ' ;
111
111
if ( text . locals && typeof resultSource !== 'undefined' ) {
112
112
resultSource = `module.exports = ${ JSON . stringify ( text . locals ) } ;` ;
113
113
}
You can’t perform that action at this time.
0 commit comments