Git Product home page Git Product logo

Comments (4)

lfzs avatar lfzs commented on July 22, 2024

vite ESM 不支持沙箱吗?

from qiankun.

lfzs avatar lfzs commented on July 22, 2024

咨询遇到的两个问题:

  • vite 子应用应该如何 export 生命周期给主应用使用呢?
    在 main.js 中的 export 构建之后会被移除掉
    虽然 window[name] = { bootstrap, mount,unmount } 可以,但前提需要明确的 name

  • 子应用入口 script 文件需要 entry 标识,但是 vite 构建后会被移除,只能手动提供 plugin 进行添加吗?

from qiankun.

web-Hunter avatar web-Hunter commented on July 22, 2024

咨询遇到的两个问题:

  • vite 子应用应该如何 export 生命周期给主应用使用呢?
    在 main.js 中的 export 构建之后会被移除掉
    虽然 window[name] = { bootstrap, mount,unmount } 可以,但前提需要明确的 name
  • 子应用入口 script 文件需要 entry 标识,但是 vite 构建后会被移除,只能手动提供 plugin 进行添加吗?

作者的这个问题解决了吗

from qiankun.

jk4235 avatar jk4235 commented on July 22, 2024

vite那个用不了吧, qiankun会自动包一层with,严格模式下不支持with语句的

from qiankun.

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.