-
Notifications
You must be signed in to change notification settings - Fork 916
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
refactor react-refresh plugin, babel user-dependency no longer needed #1178
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/pikapkg/snowpack/edpg63026 |
@@ -1,9 +1,3 @@ | |||
{ | |||
"presets": [["@babel/preset-react"], "@babel/preset-typescript"], | |||
"plugins": ["@babel/plugin-syntax-import-meta"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
somewhat related: tested with Melissa to confirm that this is no longer needed (included by default by Babel)
5a9e9ed
to
3498777
Compare
3498777
to
12562c9
Compare
ed6eb0e
to
5b8e4fc
Compare
import './App.css.proxy.js'; | ||
function App() { | ||
return /*#__PURE__*/React.createElement(\\"div\\", { | ||
"import React, {useState} from \\"../web_modules/react.js\\"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we now use esbuild instead of Babel in this app, which created the output changes here
Hi @FredKSchott, with this PR, TypeScript users can use react-refresh without babel totally. Please consider it |
That PR does not apply to Snowpack. Fast Refresh in Snowpack supports both JS & TS (you can try out our latest React TS template to confirm) |
Changes
Testing
Docs