weapp-native
weapp-native copied to clipboard
生成的dist只有文件夹,并没有文件

我也一样
目前放弃了,React开发目前还可以用京东的Taro
@Qingtian239113 我将这个项目checkout到develop分支,去掉了生成rollupPluginBabelHelpe,能编译成功,但是example里面的async不能原生支持
diff --git a/src/bin/index.js b/src/bin/index.js
index c223ad1..b204679 100644
--- a/src/bin/index.js
+++ b/src/bin/index.js
@@ -148,6 +148,7 @@ function writeOutput(output, paths) {
info(type, path.relative(src, id))
if (!fs.existsSync(dirname)) mkdirp.sync(dirname)
Object.entries(output).forEach(function([fileSuffix, data]) {
+ if (/rollupPluginBabelHelpe/.test(id)) return;
if (data && /json|js|wxml|wxss|css/.test(fileSuffix)) {
if (fileSuffix === 'css') {
fileSuffix = 'wxss'
昨天看到Taro被我略过了,汗。今天看一下 @Qingtian239113 多谢
我也只是试个水,主要是用react比较多,就想用react来开发小程序,但目前都还不太成熟