Skip to content

Changelog

1.5.0

1.4.0

  • Add support for exporting the file system with export.

1.3.0

1.2.4

  • Bug fix: reloadPreview was always doing a hard refresh as the port was not transferred.

1.2.3

  • Make @webcontainer/api ESM and SSR friendly again.
  • Emit preview messages on the webcontainer's on('preview-message') event handler.

1.2.2

  • Add reloadPreview utility, 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 forwardPreviewErrors to BootOptions which lets you capture "errors" from previews.

1.2.0

1.1.8

1.1.7

  • Change compile target to ES2022

1.1.6

1.1.5

  • Show warning with invalid coep settings

1.1.4

  • Add 'none' to the list of accepted values for coep setting. 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/api by changing all imports to include the .js extension.

1.1.0

  • The value of the Cross-Origin-Embedder-Policy header can be changed now with BootOptions#coep.
  • The name of the working directory can be specified through BootOptions#workdirName.
  • The default value of the PATH environment variable is exposed in WebContainer#path.
  • The full path of the working directory is exposed in WebContainer#workdir.