Skip to content

Commit

Permalink
docs: update parcel example to make it work with modern babel/parcel
Browse files Browse the repository at this point in the history
  • Loading branch information
garthenweb committed Feb 16, 2020
1 parent 07a4d93 commit 185176e
Show file tree
Hide file tree
Showing 3 changed files with 2,712 additions and 4,071 deletions.
17 changes: 9 additions & 8 deletions examples/SSR/parcel-react-ssr/.babelrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"presets": [
"env",
"react"
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": [
"react-imported-component/babel",
"@babel/plugin-proposal-dynamic-import",
"@babel/plugin-transform-modules-commonjs"
],
"plugins": ["react-imported-component/babel"],
"env": {
"server": {
},
"client": {
"plugins": ["react-hot-loader/babel"]
"plugins": [
"react-hot-loader/babel"
]
}
}
}
}
37 changes: 19 additions & 18 deletions examples/SSR/parcel-react-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,29 @@
"react-dom": "./node_modules/react-dom"
},
"dependencies": {
"cheerio": "^1.0.0-rc.2",
"compression": "^1.7.2",
"express": "^4.16.2",
"cheerio": "^1.0.0-rc.3",
"compression": "^1.7.4",
"express": "^4.17.1",
"multistream": "^4.0.0",
"parcel-plugin-bundle-manifest": "^0.2.0",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"react-helmet": "^5.2.0",
"react-imported-component": "^6.1.1",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-helmet": "^5.2.1",
"react-imported-component": "^6.2.1",
"react-router-dom": "^4.2.2",
"used-styles": "^2.0.2"
"used-styles": "^1.1.0"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-plugin-dynamic-import-node": "^1.2.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"cross-env": "^6.0.0",
"node-sass": "^4.11.0",
"parcel-bundler": "^1.11.0",
"react-hot-loader": "^4.0.0",
"rimraf": "^3.0.0"
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.4",
"@babel/plugin-proposal-dynamic-import": "^7.8.3",
"@babel/plugin-transform-modules-commonjs": "^7.8.3",
"@babel/preset-env": "7.8.4",
"@babel/preset-react": "7.8.3",
"cross-env": "^7.0.0",
"node-sass": "^4.13.1",
"parcel-bundler": "^1.12.4",
"react-hot-loader": "^4.12.19",
"rimraf": "^3.0.2"
}
}
Loading

0 comments on commit 185176e

Please sign in to comment.