Skip to content

Commit

Permalink
Merge pull request #207 from bholloway/remove-engine-option
Browse files Browse the repository at this point in the history
Remove the engine option
  • Loading branch information
bholloway committed Jun 9, 2021
2 parents 08e153c + 514cefb commit 23f7713
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/resolve-url-loader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const logToTestHarness = require('./lib/log-to-test-harness');
const DEPRECATED_OPTIONS = {
engine: [
'DEP_RESOLVE_URL_LOADER_OPTION_ENGINE',
'the "engine" option has been removed, "postcss" is the only available parser'
'"engine" option has been removed, postcss is the only parser used'
],
keepQuery: [
'DEP_RESOLVE_URL_LOADER_OPTION_KEEP_QUERY',
Expand Down
2 changes: 1 addition & 1 deletion packages/test-my-cli/operations/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ exports.create = (command) => {
addOrRemove(false);
resolve({
index, root, caller, cwd, env, meta, code, stdout,
stderr: caughtError ? caughtError.toString() : stderr
stderr: [ stderr, caughtError ].filter(Boolean).map(String).join('\n')
});
}
})
Expand Down
30 changes: 30 additions & 0 deletions test/cases/misconfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,36 @@ module.exports = test(
env({
ENTRY: join('src', 'index.scss')
}),
testWithOption({ engine: 'postcss' })(
testDefault(
buildDevNormal(
assertWebpackOk,
assertNoErrors,
assertDeprecationWarning('"engine" option has been removed'),
assertContentDev
),
buildProdNormal(
assertWebpackOk,
assertNoErrors,
assertDeprecationWarning('"engine" option has been removed'),
assertContentProd
)
),
testSilent(
buildDevNormal(
assertWebpackOk,
assertNoErrors,
assertSilence,
assertContentDev
),
buildProdNormal(
assertWebpackOk,
assertNoErrors,
assertSilence,
assertContentProd
)
)
),
testWithOption({ attempts: 1 })(
testDefault(
buildDevNormal(
Expand Down

0 comments on commit 23f7713

Please sign in to comment.