-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Labels
lang:javascriptIssues affecting JSIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Description
Prettier 3.0.0
Playground link
--parser babel
Input:
export const plugin = require(global.STANDALONE
? path.join(__dirname, "../standalone.js")
: path.join(__dirname, ".."));
export const plugin = _equire(global.STANDALONE
? path.join(__dirname, "../standalone.js")
: path.join(__dirname, ".."));
Output:
export const plugin = require(global.STANDALONE
? path.join(__dirname, "../standalone.js")
: path.join(__dirname, ".."));
export const plugin = _equire(
global.STANDALONE
? path.join(__dirname, "../standalone.js")
: path.join(__dirname, ".."),
);
Expected behavior:
export const plugin = require(
global.STANDALONE
? path.join(__dirname, "../standalone.js")
: path.join(__dirname, ".."),
);
export const plugin = _equire(
global.STANDALONE
? path.join(__dirname, "../standalone.js")
: path.join(__dirname, ".."),
);
so1ve
Metadata
Metadata
Assignees
Labels
lang:javascriptIssues affecting JSIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.