Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/content-scripts-css-hmr.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/curvy-rockets-relate.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/eighty-insects-happen.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/five-impalas-turn.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-content-scripts-css.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/fix-whatwg-encoding-peer-deps.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fresh-baboons-flow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/moody-rivers-hope.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/respect-vite-manifest-setting.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/rolldown-vite-plugins-fix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shaggy-hotels-buy.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/slimy-lions-join.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/vite8-beta-support.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wicked-bottles-end.md

This file was deleted.

51 changes: 51 additions & 0 deletions packages/vite-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,56 @@
# @crxjs/vite-plugin

## 2.5.0

### Minor Changes

- 4756baf: feat: add HMR support for CSS declared in manifest content_scripts
- 4756baf: add: browser_specific_settings.gecko properties
- 4756baf: Fix "TypeError: plugins is not iterable" error when using
rolldown-vite (Vite 7).

In rolldown-vite, the buildStart hook doesn't receive options.plugins. This
fix uses the configResolved hook to get plugins from the resolved config, with
buildStart kept as a fallback for older Vite versions.

- 4756baf: Fixed
[#852](https://github.com/crxjs/chrome-extension-tools/issues/852), the plugin
now emits a correct URL in `service-worker-loader.js` when the Vite option
`server.https` is enabled.
- 4756baf: fix: resolve TypeScript types correctly for ESM and CJS consumers
- 4756baf: feat: add Vite 8 beta support

### Patch Changes

- 4756baf: ci: migrate release workflow to npm trusted publishers
- 570312a: fix: sanitize colons from output filenames on Windows
- 4756baf: fix: copy CSS files declared in manifest content_scripts to output
- 4756baf: Replace cheerio with node-html-parser to fix npm deprecation warning
for whatwg-encoding.

Also adds explicit vite peerDependency declaration (^3.0.0 through ^7.0.0) to
enable proper version resolution when used with different vite versions.

- 4756baf: ci: run compat tests against stable Vite 8, make the vite8 available
as a peer dependency
- 4756baf: fix: UnoCSS/TailwindCSS HMR issues with virtual CSS modules
- 4756baf: fix: respect user's build.manifest setting in Vite 4+

When users set `build.manifest: false` in their Vite config, the Vite manifest
file (`.vite/manifest.json` in Vite 5+, or `manifest.json` in older versions)
is now properly removed from the output bundle.

CRXJS internally requires the Vite manifest to derive content script resources
during build, so it forces `build.manifest: true`. Previously, this meant the
Vite manifest was always included in the output even if the user explicitly
disabled it. Now, CRXJS removes the manifest from the bundle after processing
if the user didn't want it.

Closes #1077

- 4756baf: feat(client): Update the style and content of the development mode
loading page

## 2.3.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@crxjs/vite-plugin",
"version": "2.4.0",
"version": "2.5.0",
"description": "Build Chrome Extensions with this Vite plugin.",
"keywords": [
"rollup-plugin",
Expand Down