File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/taro-cli/templates/default/config Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { defineConfig { { #if typescript } } , type UserConfigExport { { / if } } } from '@tarojs/cli'
2
- { { #if typescript } } import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin' { { / i f } }
2
+ { { #if typescript } } { { #unless ( eq compiler "Vite" ) } } import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin' { { / u n l e s s } } { { / if} }
3
3
import devConfig from './dev'
4
4
import prodConfig from './prod'
5
5
@@ -46,7 +46,7 @@ export default defineConfig{{#if typescript }}<'{{ to_lower_case compiler }}'>{{
46
46
generateScopedName : '[name]__[local]___[hash:base64:5]'
47
47
}
48
48
}
49
- } { { #if typescript } } , { { #unless ( eq compiler "Vite" ) } }
49
+ } , { { #if typescript } } { { #unless ( eq compiler "Vite" ) } }
50
50
webpackChain ( chain ) {
51
51
chain . resolve . plugin ( 'tsconfig-paths' ) . use ( TsconfigPathsPlugin )
52
52
} { { / unless } } { { / if } }
You can’t perform that action at this time.
0 commit comments