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

Bundle actual cjs entry #14746

Closed
wants to merge 4 commits into from
Closed

Bundle actual cjs entry #14746

wants to merge 4 commits into from

Conversation

fisker
Copy link
Member

@fisker fisker commented Apr 23, 2023

Description

VSCode extention can't use cjs proxy to import() esm version, try to bundle CommonJS version of index.cjs

Checklist

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory).
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

@kachkaev
Copy link
Member

Bundling CJS in parallel to ESM can help us with prettier/prettier-vscode#2947, but will significantly increase package download size for everyone. A CJS bundle will probably be incompatible with Prettier plugins using ESM. I feel like we need to seek for a solution on the VS Code side, probably as suggested by @sosukesuzuki in prettier/prettier-vscode#2947 (comment).

@fisker
Copy link
Member Author

fisker commented Apr 23, 2023

Closing since it didn't work as expected.

@fisker fisker closed this Apr 23, 2023
@fisker fisker deleted the cjs branch April 23, 2023 13:53
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

Successfully merging this pull request may close these issues.

None yet

2 participants