File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable import/no-extraneous-dependencies */
2
2
const merge = require ( 'deepmerge' ) ;
3
3
const Promise = require ( 'bluebird' ) ;
4
- const Chunk = require ( 'webpack/lib/Chunk' ) ;
5
4
const SVGCompiler = require ( 'svg-baker' ) ;
6
5
const spriteFactory = require ( 'svg-baker/lib/sprite-factory' ) ;
7
6
const Sprite = require ( 'svg-baker/lib/sprite' ) ;
@@ -163,10 +162,6 @@ class SVGSpritePlugin {
163
162
} )
164
163
. then ( ( sprite ) => {
165
164
const content = sprite . render ( ) ;
166
- const chunkName = filename . replace ( / \. s v g $ / , '' ) ;
167
- const chunk = new Chunk ( chunkName ) ;
168
- chunk . ids = [ ] ;
169
- chunk . files . push ( filename ) ;
170
165
const filenamePrefix = this . rules . publicPath
171
166
? this . rules . publicPath . replace ( / ^ \/ / , '' )
172
167
: '' ;
@@ -175,8 +170,6 @@ class SVGSpritePlugin {
175
170
source ( ) { return content ; } ,
176
171
size ( ) { return content . length ; }
177
172
} ;
178
-
179
- compilation . chunks . push ( chunk ) ;
180
173
} ) ;
181
174
} ) ;
182
175
}
You can’t perform that action at this time.
0 commit comments