Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/taro-cli/templates/default/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// babel-preset-taro 更多选项和默认值:
// https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md
// https://github.com/NervJS/taro/blob/main/packages/babel-preset-taro/README.md
module.exports = {
presets: [
['taro', {
Expand Down
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}}
{{#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/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}}
{{#if typescript }}import type { UserConfigExport } from '@tarojs/cli'{{/if}}

export default {
mini: {},
Expand Down
2 changes: 0 additions & 2 deletions packages/taro-cli/templates/default/package.json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"devDependencies": {
"@babel/core": "^7.24.4",
"@tarojs/cli": "{{ version }}",
"@babel/plugin-proposal-class-properties": "7.14.5",
"@types/webpack-env": "^1.13.6",{{#if (includes "React" "Preact" s=framework)}}
"@types/react": "^18.0.0",{{/if}}{{#if (eq compiler "Webpack5") }}
"webpack": "5.91.0",
Expand Down Expand Up @@ -126,4 +125,3 @@
"postcss": "^8.4.38"
}{{/if}}
}

Loading