File tree Expand file tree Collapse file tree
packages/taro-cli/templates/default/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { 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} }
33import devConfig from './dev'
44import prodConfig from './prod'
55
@@ -46,7 +46,7 @@ export default defineConfig{{#if typescript }}<'{{ to_lower_case compiler }}'>{{
4646 generateScopedName : '[name]__[local]___[hash:base64:5]'
4747 }
4848 }
49- } { { #if typescript } } , { { #unless ( eq compiler "Vite" ) } }
49+ } , { { #if typescript } } { { #unless ( eq compiler "Vite" ) } }
5050 webpackChain ( chain ) {
5151 chain . resolve . plugin ( 'tsconfig-paths' ) . use ( TsconfigPathsPlugin )
5252 } { { / unless } } { { / if } }
You can’t perform that action at this time.
0 commit comments