Skip to content

Commit a97b457

Browse files
author
Ives van Hoorne
committed
Update Sandpack README
1 parent 8444f50 commit a97b457

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/sandpack/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This is a list of features that the bundler supports out of the box, the list ma
1818

1919
1. Hot Module Reloading API (`module.hot`)
2020
2. npm dependencies
21-
3. Most common transpilers (vue, babel, typescript, css, etc...)
21+
3. Most common transpilers (vue, babel, typescript, css, scss, less, stylus, parcel, etc...)
2222
4. Parallel transpiling
2323
5. On-demand transpiler loading
2424
6. Webpack loader syntax (`!raw-loader!./test.js`)
@@ -242,6 +242,10 @@ We heavily make use of Web Workers for transpilations. Almost all our transpilat
242242

243243
Another reason to host the bundler externally is because of code splitting: we split all our transpilers away and load them on-demand. If a user doesn't use `sass` we won't load the transpiler. This wouldn't be possible if we would give one big JS file as the library.
244244

245+
### Offline Support
246+
247+
We use Service Workers to download all transpilers in the background, so the next time a user visits your website they don't have to download the bundler anymore and it can be used offline. This is possible because we host the service worker externally.
248+
245249
> I want to highlight that you can also host the bundler by yourself, all necessary files are in the `sandpack` folder.
246250
247251
## Open In CodeSandbox

0 commit comments

Comments
 (0)