Giter VIP home page Giter VIP logo

Comments (3)

iceqing avatar iceqing commented on July 17, 2024

目前vite对于dynamic require of xxx支持不是特别好,目前暂未发现较好的解决方案,暂时决定等后续amis支持esm后再进行支持vite。

类似问题:vitejs/vite#5308 , 但是提供的解决方案vite-plugin-commonjs对amis不生效

同时为了加快编译,master分支webpack已支持HMR功能。
第一次启动后,如果更改amis代码,一般都会在2s内完成编译,欢迎试用。

from react-amis-admin.

duqingyu avatar duqingyu commented on July 17, 2024

大佬 现在vite有继续研究吗,我也是遇到这个问题,试了尤大的方案集成monaco-editor后还是报这个错

from react-amis-admin.

iceqing avatar iceqing commented on July 17, 2024

@hxj0x 这个问题已经修复了,可以尝试最新vite分支。

由于amis 2.0已经支持了esm,但是2.0的amis对chart的实现仍然有一些bug。
我已经给amis官方提了个PR,参考 baidu/amis#4904

不过我临时利用patch-package在本项目修复了该问题,目前可以使用vite分支来验证。

from react-amis-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.