Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit 143fb7f

Browse files
committed
use assign when passing option to plugins
1 parent 4a6b09b commit 143fb7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function cssnext(string, options) {
155155
if (options.url !== false) {
156156
postcssInstance.use(require("postcss-url")(
157157
typeof options.url === "object"
158-
? options.url
158+
? assign({}, options.url)
159159
: undefined
160160
)
161161
)
@@ -186,7 +186,7 @@ function cssnext(string, options) {
186186
) {
187187
postcssInstance.use(cssnext.features[key](
188188
typeof features[key] === "object"
189-
? features[key]
189+
? assign({}, features[key])
190190
: undefined
191191
)
192192
)
@@ -201,7 +201,7 @@ function cssnext(string, options) {
201201
assign(
202202
{},
203203
typeof options.compress === "object"
204-
? options.compress
204+
? assign({}, options.compress)
205205
: {},
206206
// forced calc options to false
207207
// since we already used it

0 commit comments

Comments
 (0)