From 5c2a97fa2e50a4c58285d356382df19bc81aca08 Mon Sep 17 00:00:00 2001 From: Vincent Voyer Date: Thu, 20 Feb 2020 10:07:35 +0100 Subject: [PATCH] upgrade next-transpile-modules to latest everywhere Following #10492 and comment from @timneutkens I went ahead and updated all examples relying on next-transpile-modules. --- examples/with-patternfly/next.config.js | 4 ++-- examples/with-patternfly/package.json | 2 +- examples/with-reasonml-todo/next.config.js | 3 +-- examples/with-reasonml-todo/package.json | 2 +- examples/with-yarn-workspaces/packages/web-app/package.json | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/examples/with-patternfly/next.config.js b/examples/with-patternfly/next.config.js index e2fa012ac120a8d..149294b221559ee 100644 --- a/examples/with-patternfly/next.config.js +++ b/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({ diff --git a/examples/with-patternfly/package.json b/examples/with-patternfly/package.json index ec033da86dfdc4b..1e5f1a89656df42 100644 --- a/examples/with-patternfly/package.json +++ b/examples/with-patternfly/package.json @@ -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" }, diff --git a/examples/with-reasonml-todo/next.config.js b/examples/with-reasonml-todo/next.config.js index cb6b2105024fcbd..ebeacd8e6783751 100644 --- a/examples/with-reasonml-todo/next.config.js +++ b/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'], }) diff --git a/examples/with-reasonml-todo/package.json b/examples/with-reasonml-todo/package.json index 3061bc5c33c76c6..da7162259c9dd5e 100644 --- a/examples/with-reasonml-todo/package.json +++ b/examples/with-reasonml-todo/package.json @@ -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" diff --git a/examples/with-yarn-workspaces/packages/web-app/package.json b/examples/with-yarn-workspaces/packages/web-app/package.json index 97b2b1bc9195a2e..9f6ae57268a9b60 100644 --- a/examples/with-yarn-workspaces/packages/web-app/package.json +++ b/examples/with-yarn-workspaces/packages/web-app/package.json @@ -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" },