Skip to content

Commit

Permalink
fix(plugin): 修复禁用 ts 导致的插件导入报错 fix #13547
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode authored and Chen-jj committed Apr 3, 2023
1 parent 4b17fae commit 078e7a4
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/taro-components-advanced/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
treeshake: false,
plugins: [
externals({
devDeps: true
devDeps: false
}),
resolve({
preferBuiltins: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components-library-react/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const config = {
treeshake: false,
plugins: [
externals({
devDeps: true
devDeps: false
}),
resolve({
preferBuiltins: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components-library-vue2/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const config = {
treeshake: false,
plugins: [
externals({
devDeps: true,
devDeps: false,
exclude: ['vue-fragment']
}),
resolve({
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components-library-vue3/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const config = {
treeshake: false,
plugins: [
externals({
devDeps: true
devDeps: false
}),
resolve({
preferBuiltins: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components-react/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
input: 'src/index.ts',
plugins: [
externals({
devDeps: true,
devDeps: false,
include: [/^react$/]
}),
resolve({
Expand Down
5 changes: 2 additions & 3 deletions packages/taro-platform-h5/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const variesConfig = [{
format: 'cjs'
},
plugins: getPlugins([externals({
devDeps: true
devDeps: false
})])
}, {
input: [
Expand All @@ -54,7 +54,7 @@ const variesConfig = [{
preserveModulesRoot: 'src'
},
plugins: getPlugins([externals({
devDeps: true
devDeps: false
})])
}, {
input: path.join(cwd, 'src/runtime/apis/index.ts'), // 供 babel-plugin-transform-taroapi 使用,为了能 tree-shaking
Expand All @@ -65,7 +65,6 @@ const variesConfig = [{
},
plugins: getPlugins([
externals({
devDeps: true,
exclude: ['@tarojs/components', '@tarojs/taro-h5']
})
], [exportNameOnly()])
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-plugin-html/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const cwd = __dirname

const base = {
plugins: [
externals({ devDeps: true }),
externals({ devDeps: false }),
ts(),
]
}
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-plugin-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"jest-cli": "^29.3.1",
"jest-environment-node": "^29.5.0",
"rollup": "^3.8.1",
"ts-jest": "^29.0.5",
"tslib": "^2.4.0",
"rollup-plugin-node-externals": "^5.0.0",
"rollup-plugin-ts": "^3.0.2",
"ts-jest": "^29.0.5",
"tslib": "^2.4.0",
"typescript": "^4.7.4"
}
}

0 comments on commit 078e7a4

Please sign in to comment.