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

upgrade next-transpile-modules to latest everywhere (#10607)

Following #10492 and comment from @timneutkens I went ahead and updated all
examples relying on next-transpile-modules.
上级 80bdf739
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({
......
......@@ -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"
},
......
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'],
})
......@@ -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"
......
......@@ -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"
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册