Skip to content

Commit

Permalink
upgrade next-transpile-modules to latest everywhere (#10607)
Browse files Browse the repository at this point in the history
Following #10492 and comment from @timneutkens I went ahead and updated all
examples relying on next-transpile-modules.
  • Loading branch information
vvo committed Feb 20, 2020
1 parent 80bdf73 commit f0c8230
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/with-patternfly/next.config.js
@@ -1,12 +1,12 @@
const path = require('path')
const withCSS = require('@zeit/next-css')
const withTM = require('next-transpile-modules')

const withTM = require('next-transpile-modules')(['@patternfly'])

const BG_IMAGES_DIRNAME = 'bgimages'

module.exports = withCSS(
withTM({
transpileModules: ['@patternfly'],
// Webpack config from https://github.com/patternfly/patternfly-react-seed/blob/master/webpack.common.js
webpack(config) {
config.module.rules.push({
Expand Down
2 changes: 1 addition & 1 deletion examples/with-patternfly/package.json
Expand Up @@ -10,7 +10,7 @@
"dependencies": {
"@patternfly/react-core": "^3.112.3",
"next": "latest",
"next-transpile-modules": "^2.3.1",
"next-transpile-modules": "^3.0.2",
"react": "^16.7.0",
"react-dom": "^16.7.0"
},
Expand Down
3 changes: 1 addition & 2 deletions examples/with-reasonml-todo/next.config.js
@@ -1,6 +1,5 @@
const withTM = require('next-transpile-modules')
const withTM = require('next-transpile-modules')(['bs-platform'])

module.exports = withTM({
pageExtensions: ['jsx', 'js', 'bs.js'],
transpileModules: ['bs-platform'],
})
2 changes: 1 addition & 1 deletion examples/with-reasonml-todo/package.json
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"babel-plugin-bucklescript": "^0.5.3",
"next": "latest",
"next-transpile-modules": "2.3.1",
"next-transpile-modules": "^3.0.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"reason-react": "^0.7.0"
Expand Down
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"next": "latest",
"next-transpile-modules": "^3.0.0",
"next-transpile-modules": "^3.0.2",
"react": "^16.8.3",
"react-dom": "^16.8.3"
},
Expand Down

0 comments on commit f0c8230

Please sign in to comment.