大头

Results 4 comments of 大头

actually, i cloned ant design mobile, and change it by using rollup re-compile, you can see here: https://github.com/chalecao/preact-h5-ui (change some dynamic to make it act normal for es module import)

you can use my preact-h5-ui, here is the rollup.config.js, import buble from 'rollup-plugin-buble' // 通过这个插件可以方便的使用 javascript 的新特性,配置上稍微麻烦一些,如下安装相应插件(包括配置babel 需要的插件) import babel from 'rollup-plugin-babel' // 帮助 Rollup 查找外部模块,然后安装,相关配置 import resolve from 'rollup-plugin-node-resolve'...

我用preact ,rollup打包,正常 ``` import buble from 'rollup-plugin-buble' // 通过这个插件可以方便的使用 javascript 的新特性,配置上稍微麻烦一些,如下安装相应插件(包括配置babel 需要的插件) import babel from 'rollup-plugin-babel' // 帮助 Rollup 查找外部模块,然后安装,相关配置 import resolve from 'rollup-plugin-node-resolve' // import json from 'rollup-plugin-json'; //...

我的报错是: 2023-11-09 15:51:45,877 WARN 86822 nodejs.ResponseTimeoutError: register to channel: failed, will retry after 3s, Server no response in 3000ms, address#127.0.0.1:7777 看一下报错后面的本地端口是否关闭,本地执行:lsof -i :7777 然后关闭所有的node端口就好了