Comments (1)
Sure, you can probably get that information by looking at this.modules
and entryModule
here (it's quite a bit different than v1 in the way it stores data, but we can probably convert it to be the same. Things like query are still to be added as we haven't had a need for it in v2 - this is mainly for things like vue): https://github.com/DeMoorJasper/sandpack-2-mvp/blob/0a9a9c61b6d6581c4c5cbfa492753099e08f9a82/src/bundler/bundler.ts#L367-L370
Looking at v1 we should probably emit the bundler-state at the end of the evaluate
callback the compile
function returns, so probably after this line: https://github.com/DeMoorJasper/sandpack-2-mvp/blob/0a9a9c61b6d6581c4c5cbfa492753099e08f9a82/src/bundler/bundler.ts#L413
from sandpack-bundler.
Related Issues (7)
- Request the template resolution of a Vue
- Architecture chart link doesn't work HOT 1
- Failing to install npm dependencies when using self-hosted bundlerURL HOT 8
- Missing DOCTYPE causes browsers to use Quirks Mode HOT 1
- Remove console.warn("Unknown preset parcel, falling back to React") when using experimental bundler HOT 2
- Live editing does not work with experimental bundler
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sandpack-bundler.