-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Standalone mode #28
Comments
My webpack workaround: {
resolve: { alias: { prettier$: require.resolve('prettier/standalone') } }
} |
I've noticed the same situation. Using it within a react app, compiler outputs:
Note that in create-react-app, is not possible to configure the webpack aliases unless you eject or use the rewired package so this is important to address via this package itself. I've submitted a PR which solves this issue. |
@viceice I'm about to release v0.4.0, once I do could you try again? I want to fully understand this issue |
Would it help if Prettier added the |
If you edit it in your node_modules and rebuild does that fix it?
On Tue, Jan 21, 2020 at 9:05 AM Georgii Dolzhykov ***@***.***> wrote:
Would it help if Prettier added the browser field to its package.json
pointing to standalone.js?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#28?email_source=notifications&email_token=ABG3P3UB24442HC2FWLUXH3Q636LTA5CNFSM4J2CAQBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJP3B4Q#issuecomment-576696562>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABG3P3ROP6CIVFCDQ3D2WALQ636LTANCNFSM4J2CAQBA>
.
--
*Kevin D. Deisz*
CTO, CultureHQ <https://www.culturehq.com>
|
Yes, but earliest on next week. But our ci will get the update as you publish it. So I can check the result. |
Does #55 solve this issue? |
@kddeisz, It does. |
Nice - I've release v0.7.1 with the change. Going to optimistically close this. Feel free to reopen if it's still an issue. |
I like to use this plugin in standalone prettier to support formating in monaco editor.
If i try to use this plugin i get webpack compiler errors.
The text was updated successfully, but these errors were encountered: