diff --git a/packages/replace/src/index.js b/packages/replace/src/index.js index 5d0427769..f671e8632 100755 --- a/packages/replace/src/index.js +++ b/packages/replace/src/index.js @@ -26,6 +26,7 @@ function getReplacements(options) { delete values.sourceMap; delete values.objectGuards; delete values.preventAssignment; + delete values.values; return values; } diff --git a/packages/replace/test/fixtures/form/observe-plugin-options/_config.js b/packages/replace/test/fixtures/form/observe-plugin-options/_config.js index f472fef74..7a78c2e20 100755 --- a/packages/replace/test/fixtures/form/observe-plugin-options/_config.js +++ b/packages/replace/test/fixtures/form/observe-plugin-options/_config.js @@ -7,6 +7,7 @@ module.exports = { sourceMap: true, include: '**/input.js', exclude: 'node_modules/**', - preventAssignment: false + preventAssignment: false, + values: undefined } }; diff --git a/packages/replace/test/fixtures/form/observe-plugin-options/input.js b/packages/replace/test/fixtures/form/observe-plugin-options/input.js index 3c553f2cc..ca62878a0 100755 --- a/packages/replace/test/fixtures/form/observe-plugin-options/input.js +++ b/packages/replace/test/fixtures/form/observe-plugin-options/input.js @@ -6,4 +6,5 @@ console.log(` include exclude preventAssignment + values `); diff --git a/packages/replace/test/fixtures/form/observe-plugin-options/output.js b/packages/replace/test/fixtures/form/observe-plugin-options/output.js index df587965c..14ad69639 100755 --- a/packages/replace/test/fixtures/form/observe-plugin-options/output.js +++ b/packages/replace/test/fixtures/form/observe-plugin-options/output.js @@ -6,4 +6,5 @@ console.log(` include exclude preventAssignment + values `); diff --git a/packages/replace/test/snapshots/form.js.md b/packages/replace/test/snapshots/form.js.md index e8b50f05c..af63073db 100644 --- a/packages/replace/test/snapshots/form.js.md +++ b/packages/replace/test/snapshots/form.js.md @@ -38,6 +38,7 @@ Generated by [AVA](https://avajs.dev). include␊ exclude␊ preventAssignment␊ + values␊ \`);` ## process-check: Handles process type guards in replacements diff --git a/packages/replace/test/snapshots/form.js.snap b/packages/replace/test/snapshots/form.js.snap index 310c56eb3..12ae908dd 100644 Binary files a/packages/replace/test/snapshots/form.js.snap and b/packages/replace/test/snapshots/form.js.snap differ