Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(taro-cli/template): 从项目模板中移除了不再需要的弃用的 babel 插件 #16727

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
1 change: 0 additions & 1 deletion 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
Loading