Commit e05229be authored by Pierre de la Martinière's avatar Pierre de la Martinière Committed by Tim Neutkens

Fix hot reloading in the yarn workspaces example (#6402)

* Fix hot reloading in the yarn workspaces example

* Update README links
parent ca7b7729
...@@ -51,4 +51,4 @@ In this example we have three workspaces: ...@@ -51,4 +51,4 @@ In this example we have three workspaces:
* [Documentation](https://yarnpkg.com/en/docs/workspaces) * [Documentation](https://yarnpkg.com/en/docs/workspaces)
* [yarn workspaces](https://yarnpkg.com/lang/en/docs/cli/workspace) * [yarn workspaces](https://yarnpkg.com/lang/en/docs/cli/workspace)
* [yarn workspace](https://yarnpkg.com/lang/en/docs/cli/workspaces) * [yarn workspace](https://yarnpkg.com/lang/en/docs/cli/workspaces)
* [next-plugin-transpile-modules](https://www.npmjs.com/package/next-plugin-transpile-modules) * [next-transpile-modules](https://www.npmjs.com/package/next-transpile-modules)
const withTM = require('next-plugin-transpile-modules') const withTM = require('next-transpile-modules')
// Tell webpack to compile the "bar" package // Tell webpack to compile the "bar" package
// https://www.npmjs.com/package/next-plugin-transpile-modules // https://www.npmjs.com/package/next-transpile-modules
module.exports = withTM({ module.exports = withTM({
transpileModules: ['bar'] transpileModules: ['bar']
}) })
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
}, },
"dependencies": { "dependencies": {
"next": "latest", "next": "latest",
"next-plugin-transpile-modules": "0.1.1", "next-transpile-modules": "^2.0.0",
"react": "^16.7.0", "react": "^16.8.3",
"react-dom": "^16.7.0" "react-dom": "^16.8.3"
}, },
"license": "ISC" "license": "ISC"
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment