Skip to content

Commit

Permalink
chore(cli): 移除 Vite 模板中的tsconfig-paths-webpack-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
caoxiemeihao committed Aug 14, 2024
1 parent 39dd83e commit fb22dac
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions examples/taro-list/types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ declare namespace NodeJS {
TARO_APP_ID: string
}
}


2 changes: 1 addition & 1 deletion packages/taro-cli/templates/default/config/dev.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{#if typescript }}import type { UserConfigExport } from "@tarojs/cli";
{{#if typescript }}import type { UserConfigExport } from '@tarojs/cli'
{{/if}}
export default {
{{#if (eq compiler "Webpack5") }} logger: {
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-cli/templates/default/config/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig{{#if typescript }}, type UserConfigExport{{/if}} } from '@tarojs/cli'
{{#if typescript }}import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin'{{/if}}
{{#if eq compiler "Webpack5" }}{{#if typescript }}import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin'{{/if}}{{/if}}
import devConfig from './dev'
import prodConfig from './prod'
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-cli/templates/default/config/prod.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{#if typescript }}import type { UserConfigExport } from "@tarojs/cli";
{{#if typescript }}import type { UserConfigExport } from '@tarojs/cli'
{{/if}}
export default {
mini: {},
Expand Down

0 comments on commit fb22dac

Please sign in to comment.