File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 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';
33import webpack from 'webpack' ;
44import sources from 'webpack-sources' ;
55
6- const { RawSource , ConcatSource } = sources ;
6+ const { ConcatSource } = sources ;
77const { Template } = webpack ;
88
99const NS = path . dirname ( fs . realpathSync ( __filename ) ) ;
@@ -38,10 +38,7 @@ class CssModule extends webpack.Module {
3838 this . sourceMap = dependency . sourceMap ;
3939 }
4040
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
4542
4643 size ( ) {
4744 return 0 ;
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ export function pitch(request) {
107107 } catch ( e ) {
108108 return callback ( e ) ;
109109 }
110- let resultSource = '' ;
110+ let resultSource = '// extracted by mini-css-extract-plugin ' ;
111111 if ( text . locals && typeof resultSource !== 'undefined' ) {
112112 resultSource = `module.exports = ${ JSON . stringify ( text . locals ) } ;` ;
113113 }
You can’t perform that action at this time.
0 commit comments