Changelog
1.2.4
- Bug fix:
reloadPreviewwas always doing a hard refresh as the port was not transferred.
1.2.3
- Make
@webcontainer/apiESM and SSR friendly again. - Emit preview messages on the webcontainer's
on('preview-message')event handler.
1.2.2
- Add
reloadPreviewutility, also exported under@webcontainer/api/utils.
1.2.1
WARNING
It's recommended to use version >= 1.2.3 to use forwardPreviewErrors as you cannot add an event listener in the webcontainerInstance in that version.
- Add
forwardPreviewErrorstoBootOptionswhich lets you capture "errors" from previews.
1.2.0
- Add support for
authentication. - Add
cwdoption toSpawnOptions.
1.1.8
- Add
fs.watch.
1.1.7
- Change compile target to ES2022
1.1.6
1.1.5
- Show warning with invalid
coepsettings
1.1.4
- Add
'none'to the list of accepted values forcoepsetting. This value can only work on Chromium-based browsers as long as an Origin Trial is supported.
1.1.3
No changes were made
1.1.2
- Fix ESM support for
@webcontainer/apiby changing all imports to include the.jsextension.
1.1.0
- The value of the
Cross-Origin-Embedder-Policyheader can be changed now withBootOptions#coep. - The name of the working directory can be specified through
BootOptions#workdirName. - The default value of the
PATHenvironment variable is exposed inWebContainer#path. - The full path of the working directory is exposed in
WebContainer#workdir.