wxt 0.20.2 → 0.20.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,11 +55,11 @@ export function devHtmlPrerender(config, server) {
55
55
  const inlineScripts = document.querySelectorAll("script:not([src])");
56
56
  inlineScripts.forEach((script) => {
57
57
  const textContent = script.textContent ?? "";
58
- const textHash = hash(textContent);
59
- inlineScriptContents[textHash] = textContent;
58
+ const key = hash(textContent);
59
+ inlineScriptContents[key] = textContent;
60
60
  const virtualScript = document.createElement("script");
61
61
  virtualScript.type = "module";
62
- virtualScript.src = `${server.origin}/@id/${virtualInlineScript}?${textHash}`;
62
+ virtualScript.src = `${server.origin}/@id/${virtualInlineScript}?${key}`;
63
63
  script.replaceWith(virtualScript);
64
64
  });
65
65
  const viteClientScript = document.querySelector(
@@ -76,7 +76,7 @@ export function devHtmlPrerender(config, server) {
76
76
  }
77
77
  },
78
78
  {
79
- name: "wxt:virtualize-react-refresh",
79
+ name: "wxt:virtualize-inline-scripts",
80
80
  apply: "serve",
81
81
  resolveId(id) {
82
82
  if (id.startsWith(virtualInlineScript)) {
@@ -88,8 +88,8 @@ export function devHtmlPrerender(config, server) {
88
88
  },
89
89
  load(id) {
90
90
  if (id.startsWith(resolvedVirtualInlineScript)) {
91
- const newHash = hash(id.substring(id.indexOf("?")));
92
- return inlineScriptContents[newHash];
91
+ const key = id.substring(id.indexOf("?") + 1);
92
+ return inlineScriptContents[key];
93
93
  }
94
94
  if (id === "\0noop") {
95
95
  return "";
@@ -100,6 +100,10 @@ export function devHtmlPrerender(config, server) {
100
100
  }
101
101
  export function pointToDevServer(config, server, id, document, querySelector, attr) {
102
102
  document.querySelectorAll(querySelector).forEach((element) => {
103
+ if (element.hasAttribute("vite-ignore") || element.hasAttribute("wxt-ignore")) {
104
+ element.removeAttribute("wxt-ignore");
105
+ return;
106
+ }
103
107
  const src = element.getAttribute(attr);
104
108
  if (!src || isUrl(src)) return;
105
109
  let resolvedAbsolutePath;
@@ -40,9 +40,13 @@ async function getPathsDeclarationEntry(entrypoints) {
40
40
  wxt.config.outDir,
41
41
  isHtmlEntrypoint(entry) ? ".html" : ".js"
42
42
  )
43
- ).concat([""]).concat(await getPublicFiles());
43
+ ).concat(await getPublicFiles());
44
44
  await wxt.hooks.callHook("prepare:publicPaths", wxt, paths);
45
- const unions = paths.map(normalizePath).sort().map((path2) => ` | "/${path2}"`).join("\n");
45
+ const unions = [
46
+ ` | ""`,
47
+ ` | "/"`,
48
+ ...paths.map(normalizePath).sort().map((path2) => ` | "/${path2}"`)
49
+ ].join("\n");
46
50
  const template = `// Generated by wxt
47
51
  import "wxt/browser";
48
52
 
@@ -44,7 +44,16 @@ export async function findEntrypoints() {
44
44
  results.push({ name, inputPath, type });
45
45
  }
46
46
  return results;
47
- }, []);
47
+ }, []).filter(({ name, inputPath }, _, entrypointInfos2) => {
48
+ if (inputPath.endsWith(".html")) return true;
49
+ const isIndexFile = /index\..+$/.test(inputPath);
50
+ if (!isIndexFile) return true;
51
+ const hasIndexHtml = entrypointInfos2.some(
52
+ (entry) => entry.name === name && entry.inputPath.endsWith("index.html")
53
+ );
54
+ if (hasIndexHtml) return false;
55
+ return true;
56
+ });
48
57
  await wxt.hooks.callHook("entrypoints:found", wxt, entrypointInfos);
49
58
  preventNoEntrypoints(entrypointInfos);
50
59
  preventDuplicateEntrypointNames(entrypointInfos);
@@ -349,7 +349,13 @@ function discoverIcons(buildOutput) {
349
349
  return icons.length > 0 ? Object.fromEntries(icons) : void 0;
350
350
  }
351
351
  function addDevModeCsp(manifest) {
352
- const permission = `${wxt.server?.origin ?? ""}/*`;
352
+ let permissonUrl = wxt.server?.origin;
353
+ if (permissonUrl) {
354
+ const permissionUrlInstance = new URL(permissonUrl);
355
+ permissionUrlInstance.port = "";
356
+ permissonUrl = permissionUrlInstance.toString();
357
+ }
358
+ const permission = `${permissonUrl}*`;
353
359
  const allowedCsp = wxt.server?.origin ?? "http://localhost:*";
354
360
  if (manifest.manifest_version === 3) {
355
361
  addHostPermission(manifest, permission);
@@ -146,8 +146,8 @@ export declare const fakeManifest: (overrides?: {
146
146
  persistent?: boolean | undefined | undefined;
147
147
  } | undefined;
148
148
  content_security_policy?: string | undefined | undefined;
149
- optional_permissions?: (string | undefined)[] | undefined;
150
- permissions?: (string | undefined)[] | undefined;
149
+ optional_permissions?: (string | undefined)[] | (Browser.runtime.ManifestOptionalPermissions | undefined)[] | undefined;
150
+ permissions?: (string | undefined)[] | (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
151
151
  web_accessible_resources?: (string | undefined)[] | undefined;
152
152
  name?: string | undefined;
153
153
  version?: string | undefined;
@@ -379,7 +379,7 @@ export declare const fakeManifest: (overrides?: {
379
379
  sandbox?: string | undefined;
380
380
  } | undefined;
381
381
  host_permissions?: (string | undefined)[] | undefined;
382
- optional_permissions?: (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
382
+ optional_permissions?: (Browser.runtime.ManifestOptionalPermissions | undefined)[] | undefined;
383
383
  optional_host_permissions?: (string | undefined)[] | undefined;
384
384
  permissions?: (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
385
385
  web_accessible_resources?: ({
@@ -594,7 +594,7 @@ export declare const fakeUserManifest: (overrides?: {
594
594
  sandbox?: string | undefined;
595
595
  } | undefined;
596
596
  host_permissions?: (string | undefined)[] | undefined;
597
- optional_permissions?: (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
597
+ optional_permissions?: (Browser.runtime.ManifestOptionalPermissions | undefined)[] | undefined;
598
598
  optional_host_permissions?: (string | undefined)[] | undefined;
599
599
  name?: string | undefined;
600
600
  version?: string | undefined;
@@ -1061,7 +1061,7 @@ export declare const fakeResolvedConfig: (overrides?: {
1061
1061
  sandbox?: string | undefined;
1062
1062
  } | undefined;
1063
1063
  host_permissions?: (string | undefined)[] | undefined;
1064
- optional_permissions?: (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
1064
+ optional_permissions?: (Browser.runtime.ManifestOptionalPermissions | undefined)[] | undefined;
1065
1065
  optional_host_permissions?: (string | undefined)[] | undefined;
1066
1066
  name?: string | undefined;
1067
1067
  version?: string | undefined;
@@ -1561,7 +1561,7 @@ export declare const fakeResolvedConfig: (overrides?: {
1561
1561
  sandbox?: string | undefined;
1562
1562
  } | undefined;
1563
1563
  host_permissions?: (string | undefined)[] | undefined;
1564
- optional_permissions?: (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
1564
+ optional_permissions?: (Browser.runtime.ManifestOptionalPermissions | undefined)[] | undefined;
1565
1565
  optional_host_permissions?: (string | undefined)[] | undefined;
1566
1566
  name?: string | undefined;
1567
1567
  version?: string | undefined;
@@ -2328,7 +2328,7 @@ export declare const fakeResolvedConfig: (overrides?: {
2328
2328
  sandbox?: string | undefined;
2329
2329
  } | undefined;
2330
2330
  host_permissions?: (string | undefined)[] | undefined;
2331
- optional_permissions?: (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
2331
+ optional_permissions?: (Browser.runtime.ManifestOptionalPermissions | undefined)[] | undefined;
2332
2332
  optional_host_permissions?: (string | undefined)[] | undefined;
2333
2333
  name?: string | undefined;
2334
2334
  version?: string | undefined;
@@ -3122,7 +3122,7 @@ export declare const fakeResolvedConfig: (overrides?: {
3122
3122
  sandbox?: string | undefined;
3123
3123
  } | undefined;
3124
3124
  host_permissions?: (string | undefined)[] | undefined;
3125
- optional_permissions?: (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
3125
+ optional_permissions?: (Browser.runtime.ManifestOptionalPermissions | undefined)[] | undefined;
3126
3126
  optional_host_permissions?: (string | undefined)[] | undefined;
3127
3127
  name?: string | undefined;
3128
3128
  version?: string | undefined;
@@ -4827,7 +4827,7 @@ export declare const fakeWxt: (overrides?: {
4827
4827
  sandbox?: string | undefined;
4828
4828
  } | undefined;
4829
4829
  host_permissions?: (string | undefined)[] | undefined;
4830
- optional_permissions?: (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
4830
+ optional_permissions?: (Browser.runtime.ManifestOptionalPermissions | undefined)[] | undefined;
4831
4831
  optional_host_permissions?: (string | undefined)[] | undefined;
4832
4832
  name?: string | undefined;
4833
4833
  version?: string | undefined;
@@ -5327,7 +5327,7 @@ export declare const fakeWxt: (overrides?: {
5327
5327
  sandbox?: string | undefined;
5328
5328
  } | undefined;
5329
5329
  host_permissions?: (string | undefined)[] | undefined;
5330
- optional_permissions?: (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
5330
+ optional_permissions?: (Browser.runtime.ManifestOptionalPermissions | undefined)[] | undefined;
5331
5331
  optional_host_permissions?: (string | undefined)[] | undefined;
5332
5332
  name?: string | undefined;
5333
5333
  version?: string | undefined;
@@ -6094,7 +6094,7 @@ export declare const fakeWxt: (overrides?: {
6094
6094
  sandbox?: string | undefined;
6095
6095
  } | undefined;
6096
6096
  host_permissions?: (string | undefined)[] | undefined;
6097
- optional_permissions?: (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
6097
+ optional_permissions?: (Browser.runtime.ManifestOptionalPermissions | undefined)[] | undefined;
6098
6098
  optional_host_permissions?: (string | undefined)[] | undefined;
6099
6099
  name?: string | undefined;
6100
6100
  version?: string | undefined;
@@ -6888,7 +6888,7 @@ export declare const fakeWxt: (overrides?: {
6888
6888
  sandbox?: string | undefined;
6889
6889
  } | undefined;
6890
6890
  host_permissions?: (string | undefined)[] | undefined;
6891
- optional_permissions?: (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
6891
+ optional_permissions?: (Browser.runtime.ManifestOptionalPermissions | undefined)[] | undefined;
6892
6892
  optional_host_permissions?: (string | undefined)[] | undefined;
6893
6893
  name?: string | undefined;
6894
6894
  version?: string | undefined;
@@ -8466,8 +8466,8 @@ export declare const fakeWxt: (overrides?: {
8466
8466
  persistent?: boolean | undefined | undefined;
8467
8467
  } | undefined;
8468
8468
  content_security_policy?: string | undefined | undefined;
8469
- optional_permissions?: (string | undefined)[] | undefined;
8470
- permissions?: (string | undefined)[] | undefined;
8469
+ optional_permissions?: (string | undefined)[] | (Browser.runtime.ManifestOptionalPermissions | undefined)[] | undefined;
8470
+ permissions?: (string | undefined)[] | (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
8471
8471
  web_accessible_resources?: (string | undefined)[] | undefined;
8472
8472
  name?: string | undefined;
8473
8473
  version?: string | undefined;
@@ -8699,7 +8699,7 @@ export declare const fakeWxt: (overrides?: {
8699
8699
  sandbox?: string | undefined;
8700
8700
  } | undefined;
8701
8701
  host_permissions?: (string | undefined)[] | undefined;
8702
- optional_permissions?: (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
8702
+ optional_permissions?: (Browser.runtime.ManifestOptionalPermissions | undefined)[] | undefined;
8703
8703
  optional_host_permissions?: (string | undefined)[] | undefined;
8704
8704
  permissions?: (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
8705
8705
  web_accessible_resources?: ({
@@ -9218,8 +9218,8 @@ export declare const fakeWxtDevServer: (overrides?: {
9218
9218
  persistent?: boolean | undefined | undefined;
9219
9219
  } | undefined;
9220
9220
  content_security_policy?: string | undefined | undefined;
9221
- optional_permissions?: (string | undefined)[] | undefined;
9222
- permissions?: (string | undefined)[] | undefined;
9221
+ optional_permissions?: (string | undefined)[] | (Browser.runtime.ManifestOptionalPermissions | undefined)[] | undefined;
9222
+ permissions?: (string | undefined)[] | (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
9223
9223
  web_accessible_resources?: (string | undefined)[] | undefined;
9224
9224
  name?: string | undefined;
9225
9225
  version?: string | undefined;
@@ -9451,7 +9451,7 @@ export declare const fakeWxtDevServer: (overrides?: {
9451
9451
  sandbox?: string | undefined;
9452
9452
  } | undefined;
9453
9453
  host_permissions?: (string | undefined)[] | undefined;
9454
- optional_permissions?: (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
9454
+ optional_permissions?: (Browser.runtime.ManifestOptionalPermissions | undefined)[] | undefined;
9455
9455
  optional_host_permissions?: (string | undefined)[] | undefined;
9456
9456
  permissions?: (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
9457
9457
  web_accessible_resources?: ({
@@ -9961,8 +9961,8 @@ export declare const fakeBuildOutput: (overrides?: {
9961
9961
  persistent?: boolean | undefined | undefined;
9962
9962
  } | undefined;
9963
9963
  content_security_policy?: string | undefined | undefined;
9964
- optional_permissions?: (string | undefined)[] | undefined;
9965
- permissions?: (string | undefined)[] | undefined;
9964
+ optional_permissions?: (string | undefined)[] | (Browser.runtime.ManifestOptionalPermissions | undefined)[] | undefined;
9965
+ permissions?: (string | undefined)[] | (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
9966
9966
  web_accessible_resources?: (string | undefined)[] | undefined;
9967
9967
  name?: string | undefined;
9968
9968
  version?: string | undefined;
@@ -10194,7 +10194,7 @@ export declare const fakeBuildOutput: (overrides?: {
10194
10194
  sandbox?: string | undefined;
10195
10195
  } | undefined;
10196
10196
  host_permissions?: (string | undefined)[] | undefined;
10197
- optional_permissions?: (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
10197
+ optional_permissions?: (Browser.runtime.ManifestOptionalPermissions | undefined)[] | undefined;
10198
10198
  optional_host_permissions?: (string | undefined)[] | undefined;
10199
10199
  permissions?: (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
10200
10200
  web_accessible_resources?: ({
@@ -10799,8 +10799,8 @@ export declare const fakeDevServer: (overrides?: {
10799
10799
  persistent?: boolean | undefined | undefined;
10800
10800
  } | undefined;
10801
10801
  content_security_policy?: string | undefined | undefined;
10802
- optional_permissions?: (string | undefined)[] | undefined;
10803
- permissions?: (string | undefined)[] | undefined;
10802
+ optional_permissions?: (string | undefined)[] | (Browser.runtime.ManifestOptionalPermissions | undefined)[] | undefined;
10803
+ permissions?: (string | undefined)[] | (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
10804
10804
  web_accessible_resources?: (string | undefined)[] | undefined;
10805
10805
  name?: string | undefined;
10806
10806
  version?: string | undefined;
@@ -11032,7 +11032,7 @@ export declare const fakeDevServer: (overrides?: {
11032
11032
  sandbox?: string | undefined;
11033
11033
  } | undefined;
11034
11034
  host_permissions?: (string | undefined)[] | undefined;
11035
- optional_permissions?: (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
11035
+ optional_permissions?: (Browser.runtime.ManifestOptionalPermissions | undefined)[] | undefined;
11036
11036
  optional_host_permissions?: (string | undefined)[] | undefined;
11037
11037
  permissions?: (Browser.runtime.ManifestPermissions | undefined)[] | undefined;
11038
11038
  web_accessible_resources?: ({
package/dist/core/zip.mjs CHANGED
@@ -17,13 +17,12 @@ export async function zip(config) {
17
17
  const start = Date.now();
18
18
  wxt.logger.info("Zipping extension...");
19
19
  const zipFiles = [];
20
- const projectName = wxt.config.zip.name ?? safeFilename(
21
- (await getPackageJson())?.name || path.basename(process.cwd())
22
- );
20
+ const packageJson = await getPackageJson();
21
+ const projectName = wxt.config.zip.name ?? safeFilename(packageJson?.name || path.basename(process.cwd()));
23
22
  const applyTemplate = (template) => template.replaceAll("{{name}}", projectName).replaceAll("{{browser}}", wxt.config.browser).replaceAll(
24
23
  "{{version}}",
25
24
  output.manifest.version_name ?? output.manifest.version
26
- ).replaceAll("{{mode}}", wxt.config.mode).replaceAll("{{manifestVersion}}", `mv${wxt.config.manifestVersion}`);
25
+ ).replaceAll("{{packageVersion}}", packageJson?.version).replaceAll("{{mode}}", wxt.config.mode).replaceAll("{{manifestVersion}}", `mv${wxt.config.manifestVersion}`);
27
26
  await fs.ensureDir(wxt.config.outBaseDir);
28
27
  await wxt.hooks.callHook("zip:extension:start", wxt);
29
28
  const outZipFilename = applyTemplate(wxt.config.zip.artifactTemplate);
package/dist/types.d.ts CHANGED
@@ -146,6 +146,7 @@ export interface InlineConfig {
146
146
  *
147
147
  * - <span v-pre>`{{name}}`</span> - The project's name converted to kebab-case
148
148
  * - <span v-pre>`{{version}}`</span> - The version_name or version from the manifest
149
+ * - <span v-pre>`{{packageVersion}}`</span> - The version from the package.json
149
150
  * - <span v-pre>`{{browser}}`</span> - The target browser from the `--browser` CLI flag
150
151
  * - <span v-pre>`{{mode}}`</span> - The current mode
151
152
  * - <span v-pre>`{{manifestVersion}}`</span> - Either "2" or "3"
@@ -170,6 +171,7 @@ export interface InlineConfig {
170
171
  *
171
172
  * - <span v-pre>`{{name}}`</span> - The project's name converted to kebab-case
172
173
  * - <span v-pre>`{{version}}`</span> - The version_name or version from the manifest
174
+ * - <span v-pre>`{{packageVersion}}`</span> - The version from the package.json
173
175
  * - <span v-pre>`{{browser}}`</span> - The target browser from the `--browser` CLI flag
174
176
  * - <span v-pre>`{{mode}}`</span> - The current mode
175
177
  * - <span v-pre>`{{manifestVersion}}`</span> - Either "2" or "3"
@@ -2,7 +2,9 @@ import { browser } from "wxt/browser";
2
2
  import { createIsolatedElement } from "@webext-core/isolated-element";
3
3
  import { applyPosition, createMountFunctions, mountUi } from "./shared.mjs";
4
4
  import { logger } from "../internal/logger.mjs";
5
+ import { splitShadowRootCss } from "../split-shadow-root-css.mjs";
5
6
  export async function createShadowRootUi(ctx, options) {
7
+ const instanceId = crypto.randomUUID();
6
8
  const css = [];
7
9
  if (!options.inheritStyles) {
8
10
  css.push(`/* WXT Shadow Root Reset */ body{all:initial;}`);
@@ -14,6 +16,7 @@ export async function createShadowRootUi(ctx, options) {
14
16
  const entryCss = await loadCss();
15
17
  css.push(entryCss.replaceAll(":root", ":host"));
16
18
  }
19
+ const { shadowCss, documentCss } = splitShadowRootCss(css.join("\n").trim());
17
20
  const {
18
21
  isolatedElement: uiContainer,
19
22
  parentElement: shadowHost,
@@ -21,7 +24,7 @@ export async function createShadowRootUi(ctx, options) {
21
24
  } = await createIsolatedElement({
22
25
  name: options.name,
23
26
  css: {
24
- textContent: css.join("\n").trim()
27
+ textContent: shadowCss
25
28
  },
26
29
  mode: options.mode ?? "open",
27
30
  isolateEvents: options.isolateEvents
@@ -31,11 +34,23 @@ export async function createShadowRootUi(ctx, options) {
31
34
  const mount = () => {
32
35
  mountUi(shadowHost, options);
33
36
  applyPosition(shadowHost, shadow.querySelector("html"), options);
37
+ if (documentCss && !document.querySelector(
38
+ `style[wxt-shadow-root-document-styles="${instanceId}"]`
39
+ )) {
40
+ const style = document.createElement("style");
41
+ style.textContent = documentCss;
42
+ style.setAttribute("wxt-shadow-root-document-styles", instanceId);
43
+ (document.head ?? document.body).append(style);
44
+ }
34
45
  mounted = options.onMount(uiContainer, shadow, shadowHost);
35
46
  };
36
47
  const remove = () => {
37
48
  options.onRemove?.(mounted);
38
49
  shadowHost.remove();
50
+ const documentStyle = document.querySelector(
51
+ `style[wxt-shadow-root-document-styles="${instanceId}"]`
52
+ );
53
+ documentStyle?.remove();
39
54
  while (uiContainer.lastChild)
40
55
  uiContainer.removeChild(uiContainer.lastChild);
41
56
  mounted = void 0;
@@ -6,6 +6,9 @@ export type ContentScriptUiOptions<TMounted> = ContentScriptPositioningOptions &
6
6
  /**
7
7
  * Callback called before the UI is removed from the webpage. Use to cleanup your UI, like
8
8
  * unmounting your Vue or React apps.
9
+ *
10
+ * Note that this callback is called only when `ui.remove` is called - that means it is
11
+ * not called automatically when the anchor is removed, unless you use `autoMount`.
9
12
  */
10
13
  onRemove?: (mounted: TMounted | undefined) => void;
11
14
  };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Given a CSS string that will be loaded into a shadow root, split it into two parts:
3
+ * - `documentCss`: CSS that needs to be applied to the document (like `@property`)
4
+ * - `shadowCss`: CSS that needs to be applied to the shadow root
5
+ * @param css
6
+ */
7
+ export declare function splitShadowRootCss(css: string): {
8
+ documentCss: string;
9
+ shadowCss: string;
10
+ };
@@ -0,0 +1,14 @@
1
+ export function splitShadowRootCss(css) {
2
+ let shadowCss = css;
3
+ let documentCss = "";
4
+ const rulesRegex = /(\s*@property[\s\S]*?{[\s\S]*?})/gm;
5
+ let match;
6
+ while ((match = rulesRegex.exec(css)) !== null) {
7
+ documentCss += match[1];
8
+ shadowCss = shadowCss.replace(match[1], "");
9
+ }
10
+ return {
11
+ documentCss: documentCss.trim(),
12
+ shadowCss: shadowCss.trim()
13
+ };
14
+ }
package/dist/version.mjs CHANGED
@@ -1 +1 @@
1
- export const version = "0.20.2";
1
+ export const version = "0.20.4";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wxt",
3
3
  "type": "module",
4
- "version": "0.20.2",
4
+ "version": "0.20.4",
5
5
  "description": "⚡ Next-gen Web Extension Framework",
6
6
  "license": "MIT",
7
7
  "dependencies": {
@@ -49,7 +49,7 @@
49
49
  "vite": "^5.4.17 || ^6.2.5",
50
50
  "vite-node": "^2.1.4 || ^3.0.0",
51
51
  "web-ext-run": "^0.2.2",
52
- "@wxt-dev/browser": "0.0.315"
52
+ "@wxt-dev/browser": "0.0.317"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@aklinker1/check": "^1.4.5",
@@ -156,6 +156,10 @@
156
156
  "types": "./dist/utils/match-patterns.d.ts",
157
157
  "default": "./dist/utils/match-patterns.mjs"
158
158
  },
159
+ "./utils/split-shadow-root-css": {
160
+ "types": "./dist/utils/split-shadow-root-css.d.ts",
161
+ "default": "./dist/utils/split-shadow-root-css.mjs"
162
+ },
159
163
  "./utils/storage": {
160
164
  "types": "./dist/utils/storage.d.ts",
161
165
  "default": "./dist/utils/storage.mjs"