Skip to content

Commit

Permalink
Feat/pure compont (#15592)
Browse files Browse the repository at this point in the history
* fix: 修复tabbar生成的类型报错

* feat: 为swiper组件添加touch和transition事件

* feat: 添加对usingComponents第三方包的支持

* feat: blended模式下关闭虚拟模块的引用修复

* feat: 在cli里添加pure-native-component模式

* feat: 在第三方包的情况下关掉文件处理

* feat: 修改变量命名

* feat: 修改传参方式

* feat: 去掉console

---------

Co-authored-by: mayintao3 <mayintao3@jd.com>
  • Loading branch information
yoturg and mayintao3 authored Apr 28, 2024
1 parent 3023cf1 commit 33e57bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ export default class CLI {
customCommand(command, kernel, args)
break
}

customCommand(command, kernel, {
args,
_,
platform,
plugin,
Expand Down
1 change: 1 addition & 0 deletions packages/taro-vite-runner/src/harmony/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default function (viteCompilerContext: ViteHarmonyCompilerContext): Plugi
const nativeCompPathList: string[] = []

for (const comp of viteCompilerContext.nativeComponents.values()) {
if (comp.isPackage) continue
nativeCompPathList.push(comp.templatePath + QUERY_IS_NATIVE_SCRIPT)
}

Expand Down
1 change: 1 addition & 0 deletions packages/taro-vite-runner/src/mini/emit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export default function (viteCompilerContext: ViteMiniCompilerContext): PluginOp

// emit native components' json
for (const comp of viteCompilerContext.nativeComponents.values()) {
if (comp.isPackage) continue
generateConfigFile(this, viteCompilerContext, {
filePath: comp.name,
config: comp.config
Expand Down

0 comments on commit 33e57bf

Please sign in to comment.