--- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/babel-plugins/export-default-from.js --- # Input ```js // https://babeljs.io/docs/en/babel-plugin-proposal-export-default-from export v from 'mod'; ``` # Prettier differences ```diff --- Prettier +++ Biome @@ -1,3 +1,6 @@ // https://babeljs.io/docs/en/babel-plugin-proposal-export-default-from -export v from "mod"; +export +v; +from; +("mod"); ``` # Output ```js // https://babeljs.io/docs/en/babel-plugin-proposal-export-default-from export v; from; ("mod"); ``` # Errors ``` export-default-from.js:4:8 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `*` but instead found `v` > 4 │ export v from 'mod'; │ ^ 5 │ i Remove v export-default-from.js:4:10 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none > 4 │ export v from 'mod'; │ ^^^^ 5 │ i An explicit or implicit semicolon is expected here... > 4 │ export v from 'mod'; │ ^^^^ 5 │ i ...Which is required to end this statement > 4 │ export v from 'mod'; │ ^^^^^^ 5 │ export-default-from.js:4:15 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a semicolon or an implicit semicolon after a statement, but found none > 4 │ export v from 'mod'; │ ^^^^^ 5 │ i An explicit or implicit semicolon is expected here... > 4 │ export v from 'mod'; │ ^^^^^ 5 │ i ...Which is required to end this statement > 4 │ export v from 'mod'; │ ^^^^^^^^^^ 5 │ ```