Open-Federation / json-schema-editor-visual

A json-schema editor of high efficient and easy-to-use, base on React.
https://hellosean1025.github.io/json-schema-visual-editor/
MIT License
998 stars 220 forks source link

`npm install`的文件能否是bulid过的? #2

Closed martin-liu closed 6 years ago

martin-liu commented 6 years ago

感谢开源这个项目!

不过我尝试使用时发现你们的source code和我的project配置有冲突,所以想请问一下,能不能publish build过的文件到npm而不是source code?

以下是详细版本:


react/babel/webpack这一套配置太烦人了,尤其是一大堆插件动不动就有兼容性问题,然后大家又喜欢再封装一层自己的东西。。

结果就是,我打算在某个project用这个库,但是因为配置问题失败了。

在我的project里,transform-class-propertiesreact-hot-loader疑似有冲突,当然也可能是其它问题,总之症状就是hot load的时候class里的static xxx = {}这种code过不了编译,debug了好久也没能解决。

当然,这不是这个project的问题。不过,如果你们publish到npm的code是build过的,就万事大吉了:laughing:

hellosean1025 commented 6 years ago

我回头研究下,暂时还不清楚怎么只编译一部分代码

hellosean1025 commented 6 years ago

Fixed. image

martin-liu commented 6 years ago

cool, thx! 👍