@@ -6,7 +6,6 @@ const parse = require('fast-json-parse')
66const findup = require ( '@choojs/findup' )
77const mapLimit = require ( 'map-limit' )
88const through = require ( 'through2' )
9- const xtend = require ( 'xtend' )
109const path = require ( 'path' )
1110const fs = require ( 'fs' )
1211
@@ -31,7 +30,7 @@ function isBubleTemplateDefinition (node) {
3130function transform ( filename , options ) {
3231 if ( / \. j s o n $ / i. test ( filename ) ) return through ( )
3332
34- const opts = xtend ( options || {
33+ const opts = Object . assign ( { } , options || {
3534 basedir : process . cwd ( ) ,
3635 transform : [ ] ,
3736 out : ''
@@ -148,7 +147,7 @@ function transform (filename, options) {
148147 nodes . push ( {
149148 css : css ,
150149 filename : filename ,
151- opts : xtend ( opts ) ,
150+ opts : Object . assign ( { } , opts ) ,
152151 node : node . parent
153152 } )
154153 }
@@ -183,7 +182,7 @@ function transform (filename, options) {
183182 nodes . push ( {
184183 css : elements . map ( function ( part ) { return part . value } ) . join ( '' ) ,
185184 filename : filename ,
186- opts : xtend ( opts ) ,
185+ opts : Object . assign ( { } , opts ) ,
187186 node : node
188187 } )
189188 }
@@ -236,7 +235,7 @@ function transform (filename, options) {
236235 }
237236
238237 const iOpts = node . arguments [ 1 ]
239- ? xtend ( opts , staticEval ( node . arguments [ 1 ] ) )
238+ ? Object . assign ( { } , opts , staticEval ( node . arguments [ 1 ] ) )
240239 : opts
241240
242241 transformStream . emit ( 'file' , resolvePath )
0 commit comments