20 lines
629 B
Markdown
20 lines
629 B
Markdown
#### Allow break import attributes into multiple lines (#17329 by @fisker)
|
|
|
|
<!-- prettier-ignore -->
|
|
```jsx
|
|
// Input
|
|
import syntaxImportAssertions from "@babel/plugin-syntax-import-assertions" with {
|
|
BABEL_8_BREAKING: "false",
|
|
USE_ESM: "true", IS_STANDALONE: "false" };
|
|
|
|
// Prettier stable
|
|
import syntaxImportAssertions from "@babel/plugin-syntax-import-assertions" with { BABEL_8_BREAKING: "false", USE_ESM: "true", IS_STANDALONE: "false" };
|
|
|
|
// Prettier main
|
|
import syntaxImportAssertions from "@babel/plugin-syntax-import-assertions" with {
|
|
BABEL_8_BREAKING: "false",
|
|
USE_ESM: "true",
|
|
IS_STANDALONE: "false",
|
|
};
|
|
```
|