Skip to content

Commit 53d8ba9

Browse files
committed
revert(runtime): 回退 runtime 使用的 ts 插件,因为它无法生成 dts chunk 文件,导致隐患
1 parent 2986a52 commit 53d8ba9

File tree

3 files changed

+29
-5
lines changed

3 files changed

+29
-5
lines changed

packages/taro-runtime/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@
3737
"tslib": "^2.6.2"
3838
},
3939
"devDependencies": {
40+
"@rollup/plugin-typescript": "^12.1.2",
4041
"@types/react": "^18.2.79",
4142
"@vue/runtime-core": "^3.4.23",
4243
"lodash": "^4.17.21",
4344
"react": "^18.2.0",
4445
"rollup": "^4.37.0",
45-
"@rollup/plugin-typescript": "^12.1.2"
46+
"rollup-plugin-ts": "^3.4.5"
4647
}
4748
}

packages/taro-runtime/rollup.config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import ts from '@rollup/plugin-typescript'
21
import _ from 'lodash'
32
import { defineConfig } from 'rollup'
43
import externals from 'rollup-plugin-node-externals'
4+
import ts from 'rollup-plugin-ts'
55

66
import type { RollupOptions } from 'rollup'
77

@@ -13,9 +13,7 @@ const baseConfig = {
1313
},
1414
plugins: [
1515
externals(),
16-
ts({
17-
exclude: ['rollup.config.ts']
18-
}),
16+
ts(),
1917
]
2018
}
2119

pnpm-lock.yaml

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)