-
Notifications
You must be signed in to change notification settings - Fork 15
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
Babel configs are ignored #27
Comments
I am having the same experience, my |
No solution beyond running Babel separately and before this plugin, no. I think that's fine and correct for my use case though, so it's not a problem. |
Thank you for your response @rschristian |
Sorry, this isn't a simple use case. I have added this for
|
Amazing, @rschristian Thank you again, I really appreciate it. |
No problem. Preact-CLI always have a need for @developit An extra question: given the prevalence of syntax like JSX, TS, decorators, etc., should I just don't see that instruction actually being valid for most users, unless I'm missing something? |
@rschristian I think they could be clearer about this, yes. The docs should say "using a simpler or faster loader to handle non-JS syntax, like Sucrase". The idea isn't necessarily to avoid the need for a loader at all, it's that the loader shouldn't be doing any ES version-related trabspilation. |
Gotcha, good to confirm; I didn't imagine the intent was to run this first to handle those transforms (assuming the babel config was customizable) but the docs pointed that way. |
In the ReadMe, there's the following line:
However, both
configFile
andbabelrc
are set tofalse
:optimize-plugin/src/worker.js
Lines 59 to 61 in aefb895
This should stop any config files from being loaded, AFAIK. Am I misunderstanding something, or are the docs outdated perhaps?
The text was updated successfully, but these errors were encountered: