未验证 提交 189fc985 编写于 作者: V Vincent Voyer 提交者: GitHub

Upgrade next-transpile-modules in workspace examples (#10492)

The latest major release of next-transpile-module (v3) changed the way the
module is used, see: https://github.com/martpie/next-transpile-modules/releases/tag/3.0.0
上级 2ff09138
const withTM = require('next-transpile-modules') // Tell webpack to compile the "bar" package, necessary if you're using the export statement for example
// Tell webpack to compile the "bar" package
// https://www.npmjs.com/package/next-transpile-modules // https://www.npmjs.com/package/next-transpile-modules
module.exports = withTM({ const withTM = require('next-transpile-modules')(['bar'])
transpileModules: ['bar'],
}) module.exports = withTM()
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
}, },
"dependencies": { "dependencies": {
"next": "latest", "next": "latest",
"next-transpile-modules": "^2.0.0", "next-transpile-modules": "^3.0.0",
"react": "^16.8.3", "react": "^16.8.3",
"react-dom": "^16.8.3" "react-dom": "^16.8.3"
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册