-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
area:standaloneIssues with Prettier's Standalone build (meant to be used in the browser)Issues with Prettier's Standalone build (meant to be used in the browser)
Description
We have documents for ESM import on browser but it needs using some module bundler (e.g. webpack, rollup). (See https://prettier.io/docs/en/browser.html#es-modules)
I thinks we should have native ESM standalone bundled. I hope we can use Prettier like below:
import prettier from "https://unpkg.com/[email protected]/standalone.m.js";
import parserGraphql from "https://unpkg.com/[email protected]/parser-graphql.m.js";
prettier.format("query { }", {
parser: "graphql",
plugins: [parserGraphql],
});WDYT?
fisker, dmy147, SimonSiefke, ExE-Boss, ThomOrlo and 5 more
Metadata
Metadata
Assignees
Labels
area:standaloneIssues with Prettier's Standalone build (meant to be used in the browser)Issues with Prettier's Standalone build (meant to be used in the browser)