test(parser): add no_plugin tests for module blocks (#13714)
This commit is contained in:
parent
1355d0078c
commit
a54f041440
4
packages/babel-parser/test/fixtures/experimental/_no-plugin/module-blocks/input.js
vendored
Normal file
4
packages/babel-parser/test/fixtures/experimental/_no-plugin/module-blocks/input.js
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
let moduleBlock = module {
|
||||
export let y = 1;
|
||||
};
|
||||
let moduleExports = await import(moduleBlock);
|
||||
3
packages/babel-parser/test/fixtures/experimental/_no-plugin/module-blocks/options.json
vendored
Normal file
3
packages/babel-parser/test/fixtures/experimental/_no-plugin/module-blocks/options.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'moduleBlocks' (1:18)"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user