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

Build now uses prettier/standalone #943

Merged
merged 6 commits into from
Nov 6, 2023
Merged

Build now uses prettier/standalone #943

merged 6 commits into from
Nov 6, 2023

Conversation

Janther
Copy link
Contributor

@Janther Janther commented Nov 4, 2023

With this change users won't have to uses aliases when building applications for the browser.

This feature was by 2 users (#942 and another one in the Telegram thread), having issues when building an application for the browser.

Before this fix, webpack was generating code that used require('prettier'). This would lead to requiring the use of aliases in the webpack configuration so 'prettier' would be resolved to 'prettier/standalone'.

With this change, users will still be able to build for node using commons, esm, and building for the browser without the need for aliases.

@Janther Janther added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels Nov 4, 2023
Copy link
Member

@fvictorio fvictorio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested this manually, but looks good. Maybe we should publish a dev version first and ask those users that asked about this to give it a try?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants