turbo
84e30f47 - Add support for dynamic `import()`s on the server-side (#3193)

Commit
2 years ago
Add support for dynamic `import()`s on the server-side (#3193) This PR separates Turbopack's `runtime.js` into two: - the Browser/DOM implementation, which uses `<script>` and `<link>` tags for dynamically loading chunks; - the Node.js/CommonJS implementation, which uses `require` instead. ~~The two runtimes share a lot of code, but I'm not sure what's the best approach for sharing this logic, or even if we should, so for now they are two separate entities.~~ The shared code between the two runtimes is now in a separate file to avoid duplication. Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Author
Parents
Loading