提交 e05229be 编写于 作者: P Pierre de la Martinière 提交者: Tim Neutkens

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

* Fix hot reloading in the yarn workspaces example

* Update README links
上级 ca7b7729
......@@ -51,4 +51,4 @@ In this example we have three workspaces:
* [Documentation](https://yarnpkg.com/en/docs/workspaces)
* [yarn workspaces](https://yarnpkg.com/lang/en/docs/cli/workspace)
* [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
// https://www.npmjs.com/package/next-plugin-transpile-modules
// https://www.npmjs.com/package/next-transpile-modules
module.exports = withTM({
transpileModules: ['bar']
})
......@@ -8,9 +8,9 @@
},
"dependencies": {
"next": "latest",
"next-plugin-transpile-modules": "0.1.1",
"react": "^16.7.0",
"react-dom": "^16.7.0"
"next-transpile-modules": "^2.0.0",
"react": "^16.8.3",
"react-dom": "^16.8.3"
},
"license": "ISC"
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册