Skip to content

Commit

Permalink
Upgrade next-transpile-modules in workspace examples (#10492)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
vvo committed Feb 11, 2020
1 parent 2ff0913 commit 189fc98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions examples/with-yarn-workspaces/packages/web-app/next.config.js
@@ -1,7 +1,5 @@
const withTM = require('next-transpile-modules')

// Tell webpack to compile the "bar" package
// Tell webpack to compile the "bar" package, necessary if you're using the export statement for example
// https://www.npmjs.com/package/next-transpile-modules
module.exports = withTM({
transpileModules: ['bar'],
})
const withTM = require('next-transpile-modules')(['bar'])

module.exports = withTM()
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"next": "latest",
"next-transpile-modules": "^2.0.0",
"next-transpile-modules": "^3.0.0",
"react": "^16.8.3",
"react-dom": "^16.8.3"
},
Expand Down

0 comments on commit 189fc98

Please sign in to comment.