Immutable, exact-versioned module requests (the module CDN's /package/...
endpoints and unpkg files) are cached at runtime in a persistent Cache API
cache — see registerImmutableUrlPrefix in src/utils/fetch.ts. The first
fetch of a given URL populates the cache; later loads are served from it
without touching the network. There is nothing to regenerate or check in.
The sandpack bundler, this aims to eventually replace the current sandpack with a more streamlined and faster version.
- Run
yarnto install dependencies. - Run
yarn devto start the development server - Set the
bundlerURLof sandpack-react tohttp://localhost:1234/to see it in action.
- Run
yarnto install dependencies. - Run
yarn buildto build the application - Run
yarn startto start a local test server - Set the
bundlerURLof sandpack-react tohttp://localhost:4587/
The main branch of this repository is automatically deployed to https://sandpack-bundler.codesandbox.io so you can update bundlerURL of sandpack-react to that url and start using the new sandpack bundler.
cp -r /Users/neumark/git/sandpack-test/my-app/node_modules/@fontsource/roboto/files ./dist/