-
-
Notifications
You must be signed in to change notification settings - Fork 866
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
v3 #839
v3 #839
Conversation
* Upgrade Babel to v7, Jest to v23.6 Fix the following examples * with-custom-babel-config * with-inferno * with-preact * with-react-native-web * with-rax * Mimic other CRA defaults
"mini-css-extract-plugin": "^0.4.0", | ||
"@babel/core": "7.1.2", | ||
"assets-webpack-plugin": "3.9.7", | ||
"babel-core": "^7.0.0-bridge.0", |
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.
@jaredpalmer is babel-core
required if have @babel/core
already?
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.
* Sync with CRA 2 * Remove unused deps * Remove array
I see this warning in console -> |
@jaredpalmer what do you think the timeline is for v3? |
Waiting for people to give feedback. |
I just dropped But I also see this warning:
|
Was playing with
{
"presets": [
"razzle/babel",
[
"@babel/preset-env",
{
"useBuiltIns": "usage",
"loose": true,
"targets": {
"node": "current",
"browsers": ["chrome 70"]
}
}
]
]
} Run build script and will see this ./src/Home.js
"targets": {
"node": "current",
"browsers": ["chrome 70"]
} is working as expected, but if change chrome version to 41 for example. |
Do you have a suggested fix? |
Fix for the second option? - not yet |
@dan-lee can you submit a PR? |
We upgrade one of our internal razzle app to thee alpha release, so far we don't have any mayor issue with it. |
@olegreznichenko @jaredpalmer there's already a PR for @babel/runtime: #845 |
I don't mind helping test out if possible. how do I go about setting up a new app with v3? can I use npx for it? |
@jaredpalmer could you re-tag and include #845 ? |
I just upgraded one of our frontends without any issues. Only the previous reported warning message. Would be nice with a new alpha release with the polyfill removal (we are working on a solution for conditionally including polyfills). |
Waiting patiently for this version to be released! |
Will cut a release later today |
@jaredpalmer I have a little something for ya. Seems like "Transpile node_modules with babel (like CRA does)" didn't get crossed off the list. I have a working version here ready if interested. Needs to be rebased with the new alpha. I wont have time this week to tie it off but if someone whats to pick it up, I'' post the PR. rg-najera#1 |
Yeah, I don't use babel so I never got around to it. So if someone wants to tackle that, it would be rad. |
Copy that @jaredpalmer I'll post the PR and can tie up loose ends for merge. Is there another exit criteria for moving out of alpha? |
|
@gribnoysup when working on this last, I did need to make an adjustment so that babelrc.js is picked up. As @jaredpalmer noted, he doesn't use babel so that was probably unintentional. Will make a note and add support for all. |
@el-rotny ahh, totally makes sense, thanks for clarifying! 😁 |
I'm working on a medium sized project and everything is working fine so far on v3.0.0-alpha.2 |
Migrated a Nice:
Issues:
|
@mschipperheyn Agree about security. We could add |
@jaredpalmer I implemented Not familiar with When it comes to security, on the one hand I think you should help people be protected out of the box. On the other hand, csp will lead to a number of support questions because things may not load as expected if you make a mistake. Perhaps it should be a strongly recommnended plugin with clear docs on the kinds of issues you might run into. |
Oh, one thing that might be worth mentioning is what I did to deal with async startup services. In my case, I want the
|
Another issue I noticed is that the TerserPlugin is not removing some obvious wins.
should drop all the Tried this out, and made no difference. I guess TerserPlugin already does this |
It would also be nice to have some kind of dynamic integration with polyfill.io. https://github.com/facebook/create-react-app/tree/master/packages/react-app-polyfill seems very static. In an SSR scenario, it should be possible to dynamically pass the right polyfills config down the line and reference polyfill.io |
@mschipperheyn that’s a brilliant idea. Seems like it could be done as a plugin while we incubate it? |
@mschipperheyn can you whip some razzle examples for react-helmet-async, sequelize, and redis? |
@jaredpalmer yes, I can do that. #899 |
* Remove eslint handling from razzle-plugin-typescript * Remove parts from docs mentioning eslint * Move eslint specific code over to razzle-plugin-eslint * Add a temporary eslint-plugin-react setting * Update to the latest eslint packages as defined in react-scripts
…#903) * add globalSetup, globalTeardown and moduleDirectories to jest allowed * rerun tests
@jaredpalmer can you cut a new alpha version? I'm interested in the webpack-dev-server 3 piece. :) Thanks man. |
Cutting a release right meow |
Thanks @jaredpalmer, it works. I ran into some webpack import issue using react-loadable. Same issue that people are running into here: and solved the issue by following this comment: |
Ok, I converted my cra app to razzle 3, but tree shaking is not happening. I can't find anything in the docs about it. Is there something I need to configure? Other than that, I am loving razzle 3! |
@jlaustill same here, I fixed it by just adding |
node_modules
with babel (like CRA does)