Skip to content
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

Merged
merged 7 commits into from
Jul 27, 2018

Conversation

jmaguirrei
Copy link
Contributor

Missing configuration in package.json and .babelrc causes this example to be broken after installing and running the example.

Missing configuration causes this example to break.
@jmaguirrei jmaguirrei changed the title Missing babel configuration Missing babel configuration in sw-precache example Jul 27, 2018
{

"presets": [
[ "next/babel", { "preset-env": { "modules": "commonjs" }} ]
Copy link
Member

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"
Copy link
Member

@timneutkens timneutkens Jul 27, 2018

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 🤔

Copy link
Contributor Author

@jmaguirrei jmaguirrei left a 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 @@
{
Copy link
Member

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

Copy link
Contributor Author

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.

@timneutkens timneutkens merged commit 7282f43 into vercel:canary Jul 27, 2018
@timneutkens
Copy link
Member

Thanks!

@lock lock bot locked as resolved and limited conversation to collaborators Jul 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants