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

build: fix taro prebuild fail #763

Merged
merged 1 commit into from
Jun 24, 2024
Merged

Conversation

hbztd
Copy link
Contributor

@hbztd hbztd commented Jun 24, 2024

修复taro预编译@taroify/core, @taroify/icons失败

export { default as Button } from "./button"
在esbuild0.18.0 (taro 3.6.20) 版本以后node_modules里./button会匹配上./button/index.css和./button/index.js,之前版本只会匹配./button/index.js,导致预编译时加载是./button/index.css而不是js文件,因而预编译失败。需要添加上.js扩展名

之前写的正则和判断条件有问题 😰。。。.js扩展名实际上未添加上,预编译仍然有问题。

@Pilotager Pilotager merged commit 1ba82e7 into mallfoundry:main Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants