Unverified Commit 189fc985 authored by Vincent Voyer's avatar Vincent Voyer Committed by 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
parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment