-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Missing babel configuration in sw-precache example #4856
Conversation
Missing configuration causes this example to break.
examples/with-sw-precache/.babelrc
Outdated
{ | ||
|
||
"presets": [ | ||
[ "next/babel", { "preset-env": { "modules": "commonjs" }} ] |
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.
This should never be done, only in the test
environment.
@@ -10,5 +10,8 @@ | |||
"react": "^16.0.0", | |||
"react-dom": "^16.0.0", | |||
"sw-precache-webpack-plugin": "^0.11.3" | |||
}, | |||
"devDependencies": { | |||
"@babel/preset-stage-0": "^7.0.0-beta.42" |
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.
This doesn't add anything to the example right 🤔
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.
.babelrc file now should be OK
@@ -0,0 +1,19 @@ | |||
{ |
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.
There's no "test"
script in this example so the babelrc shouldn't be here right
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.
Yes, you are right, I corrected it.
Thanks! |
Missing configuration in package.json and .babelrc causes this example to be broken after installing and running the example.