File tree 3 files changed +10
-4
lines changed
tests/__fixtures__/template/nextConfig
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ const nextConfig = {
35
35
ignoreDuringBuilds: true
36
36
},
37
37
transpilePackages: [
38
- 'taro-ui'
38
+ 'taro-ui'
39
39
],
40
40
webpack(config, options) {
41
41
const {isServer, webpack} = options
42
42
43
43
if (!isServer && !withLess && !reported) {
44
44
const chalk = require('chalk')
45
- console.log(chalk.red ('\nThe current version of Next.js cannot support Less, please feed back on the issue of github.'))
45
+ console.log(chalk.yellow ('\nThe current version of Next.js cannot support Less, please feed back on the issue of github.\n '))
46
46
reported = true
47
47
}
48
48
Original file line number Diff line number Diff line change @@ -20,12 +20,15 @@ const nextConfig = {
20
20
eslint : {
21
21
ignoreDuringBuilds : true
22
22
} ,
23
+ transpilePackages : [
24
+ 'taro-ui'
25
+ ] ,
23
26
webpack ( config , options ) {
24
27
const { isServer, webpack} = options
25
28
26
29
if ( ! isServer && ! withLess && ! reported ) {
27
30
const chalk = require ( 'chalk' )
28
- console . log ( chalk . red ( '\nThe current version of Next.js cannot support Less, please feed back on the issue of github.' ) )
31
+ console . log ( chalk . yellow ( '\nThe current version of Next.js cannot support Less, please feed back on the issue of github.\n ' ) )
29
32
reported = true
30
33
}
31
34
Original file line number Diff line number Diff line change @@ -18,12 +18,15 @@ const nextConfig = {
18
18
eslint : {
19
19
ignoreDuringBuilds : true
20
20
} ,
21
+ transpilePackages : [
22
+ 'taro-ui'
23
+ ] ,
21
24
webpack ( config , options ) {
22
25
const { isServer, webpack} = options
23
26
24
27
if ( ! isServer && ! withLess && ! reported ) {
25
28
const chalk = require ( 'chalk' )
26
- console . log ( chalk . red ( '\nThe current version of Next.js cannot support Less, please feed back on the issue of github.' ) )
29
+ console . log ( chalk . yellow ( '\nThe current version of Next.js cannot support Less, please feed back on the issue of github.\n ' ) )
27
30
reported = true
28
31
}
29
32
You can’t perform that action at this time.
0 commit comments