-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
[plugin-babel] Unexpected situation when using with babel-preset-react-app on Windows #1089
Comments
Thanks for opening an issue. Citing the issue template:
We cannot make this any clearer. Please add a reproduction and we'll be happy to triage further. |
Thought you might be ok with the regex reproduction link, as it's simple as that. But here's the repo I promised (if needed): https://github.com/atti187/rollup-babel-bug |
* fix(babel): consider path delimeter on windows (#1089) * Fixed lint issues * Added reference to issue in babel * chore: update comment linking to the resolved Babel issue Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
Expected Behavior
PreflightChecks are passed
Actual Behavior
Error: An unexpected situation arose. Please raise an issue at https://github.com/rollup/plugins/issues. Thanks!
Additional Information
https://github.com/facebook/create-react-app/blob/a422bf227cf5294a34d68696664e9568a152fd8f/packages/babel-preset-react-app/create.js#L194 is using
which on Windows evaluates to
<my-source-path>\\rollup-babel-bug\\node_modules\\@babel\\runtime
. This breaks the preflightCheck atplugins/packages/babel/src/preflightCheck.js
Line 48 in 9874740
plugins/packages/babel/src/preflightCheck.js
Line 37 in 9874740
If possible to verify on Windows I can provide a reproduction repo.
No matter what, I'll create a PR for the change.
The text was updated successfully, but these errors were encountered: