polish: throw human-friendly error when item-option pair is in… (#10969)
* polish: throw human-friendly error when item-option pair is incorrectly unwrapped * add testcase for plugin * fix: exclude false positive * fix: validate should support plugin optionsSourceKind * Revert "fix: validate should support plugin optionsSourceKind" * fix: validate plugin object in assertNoUnwrappedItemOptionPairs * fix flow error * update test fixtures * refactor: move to loadDescriptor catch clause * chore: throw Error instead of builtin ReferenceError * fix flow errors * chore: add more test cases
This commit is contained in:
committed by
Nicolò Ribaudo
parent
43b23e0869
commit
fa975bf7cd
1
packages/babel-core/test/fixtures/option-manager/babel-plugin-foo/index.js
vendored
Normal file
1
packages/babel-core/test/fixtures/option-manager/babel-plugin-foo/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = () => ({});
|
||||
1
packages/babel-core/test/fixtures/option-manager/babel-preset-bar/index.js
vendored
Normal file
1
packages/babel-core/test/fixtures/option-manager/babel-preset-bar/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = () => ({});
|
||||
Reference in New Issue
Block a user