Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

browser build no longer supported #95

Open
brodycj opened this issue Dec 27, 2019 · 0 comments
Open

browser build no longer supported #95

brodycj opened this issue Dec 27, 2019 · 0 comments

Comments

@brodycj
Copy link
Owner

brodycj commented Dec 27, 2019

A side effect of removing the prod build (#48) is that use in a browser build (https://prettier.io/docs/en/browser.html) is no longer expected to work.

I think it would be ideal if we could add a browser entry to package.json with a limited number of substitutions to make this package work in a browser ref:


Update June 2021: This means that the information in docs/browser.md does not apply for prettierX.

Some form of browser build support is under consideration for the future. And a switch to ES modules would likely increase the chances of working in more and more environments such as modern browsers and Deno out of the box.

The recommended solution for now is to use a bundler such as Rollup or Webpack.

@brodycj brodycj pinned this issue Dec 31, 2020
brodycj pushed a commit that referenced this issue Jun 22, 2021
as discussed in this issue:

- #95

and revert updates to `docs/browser.md` from this commit:

- a48be8e
brodycj pushed a commit that referenced this issue Jun 22, 2021
* prettierx docs: update browser status for prettierX

as discussed in this issue:

- #95

and revert incorrect updates to `docs/browser.md` from this commit:

- a48be8e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant