-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(client): enable code-splitting and dynamic imports in esbuild #741
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
d37714f
to
d39c13e
Compare
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit d39c13e:
|
this PR fixes only const { loadSandpackClient } = require("@codesandbox/sandpack-client");
const { SandpackRuntime } = require("@codesandbox/sandpack-client/clients/runtime");
(async () => {
const client = await loadSandpackClient("div > iframe", {});
console.log(client instanceof SandpackRuntime);
// ^ will be false for commonjs but should be true
})(); |
Well, |
Yes, this is impossible to fix with |
All kudos to @jeetiss