diff --git a/packages/babel-parser/test/fixtures/experimental/_no-plugin/module-blocks/input.js b/packages/babel-parser/test/fixtures/experimental/_no-plugin/module-blocks/input.js new file mode 100644 index 0000000000..5cf4a422eb --- /dev/null +++ b/packages/babel-parser/test/fixtures/experimental/_no-plugin/module-blocks/input.js @@ -0,0 +1,4 @@ +let moduleBlock = module { + export let y = 1; +}; +let moduleExports = await import(moduleBlock); diff --git a/packages/babel-parser/test/fixtures/experimental/_no-plugin/module-blocks/options.json b/packages/babel-parser/test/fixtures/experimental/_no-plugin/module-blocks/options.json new file mode 100644 index 0000000000..45ff422e6d --- /dev/null +++ b/packages/babel-parser/test/fixtures/experimental/_no-plugin/module-blocks/options.json @@ -0,0 +1,3 @@ +{ + "throws": "This experimental syntax requires enabling the parser plugin: 'moduleBlocks' (1:18)" +} \ No newline at end of file