@crxjs/vite-plugin 1.0.11 → 1.0.12
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.
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +8 -8
- package/CHANGELOG.md +0 -79
package/dist/index.cjs
CHANGED
|
@@ -70,8 +70,8 @@ async function manifestFiles(manifest, options = {}) {
|
|
|
70
70
|
const serviceWorker = manifest.background?.service_worker;
|
|
71
71
|
const htmlPages = htmlFiles(manifest);
|
|
72
72
|
const icons = [
|
|
73
|
-
Object.values(manifest.icons ?? {}),
|
|
74
|
-
Object.values(manifest.action?.default_icon ?? {})
|
|
73
|
+
Object.values(isString(manifest.icons) ? [manifest.icons] : manifest.icons ?? {}),
|
|
74
|
+
Object.values(isString(manifest.action?.default_icon) ? [manifest.action?.default_icon] : manifest.action?.default_icon ?? {})
|
|
75
75
|
].flat();
|
|
76
76
|
let webAccessibleResources = [];
|
|
77
77
|
if (manifest.web_accessible_resources) {
|
package/dist/index.mjs
CHANGED
|
@@ -37,8 +37,8 @@ async function manifestFiles(manifest, options = {}) {
|
|
|
37
37
|
const serviceWorker = manifest.background?.service_worker;
|
|
38
38
|
const htmlPages = htmlFiles(manifest);
|
|
39
39
|
const icons = [
|
|
40
|
-
Object.values(manifest.icons ?? {}),
|
|
41
|
-
Object.values(manifest.action?.default_icon ?? {})
|
|
40
|
+
Object.values(isString(manifest.icons) ? [manifest.icons] : manifest.icons ?? {}),
|
|
41
|
+
Object.values(isString(manifest.action?.default_icon) ? [manifest.action?.default_icon] : manifest.action?.default_icon ?? {})
|
|
42
42
|
].flat();
|
|
43
43
|
let webAccessibleResources = [];
|
|
44
44
|
if (manifest.web_accessible_resources) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crxjs/vite-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "Build Chrome Extensions with this Vite plugin.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rollup-plugin",
|
|
@@ -83,24 +83,24 @@
|
|
|
83
83
|
"@rollup/plugin-commonjs": "21.1.0",
|
|
84
84
|
"@rollup/plugin-node-resolve": "13.2.0",
|
|
85
85
|
"@types/acorn": "4.0.6",
|
|
86
|
-
"@types/chrome": "0.0.
|
|
86
|
+
"@types/chrome": "0.0.190",
|
|
87
87
|
"@types/debug": "4.1.7",
|
|
88
88
|
"@types/fs-extra": "9.0.13",
|
|
89
|
-
"@types/jest": "27.5.
|
|
89
|
+
"@types/jest": "27.5.2",
|
|
90
90
|
"@types/jest-image-snapshot": "4.3.1",
|
|
91
91
|
"@types/jsesc": "3.0.1",
|
|
92
92
|
"@types/node": "17.0.18",
|
|
93
93
|
"@types/react": "17.0.44",
|
|
94
94
|
"@types/react-dom": "17.0.17",
|
|
95
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
96
|
-
"@typescript-eslint/parser": "5.
|
|
95
|
+
"@typescript-eslint/eslint-plugin": "5.27.1",
|
|
96
|
+
"@typescript-eslint/parser": "5.27.1",
|
|
97
97
|
"@vitejs/plugin-react": "1.3.2",
|
|
98
98
|
"@vitejs/plugin-vue": "2.3.3",
|
|
99
|
-
"esbuild": "0.14.
|
|
99
|
+
"esbuild": "0.14.43",
|
|
100
100
|
"esbuild-runner": "2.2.1",
|
|
101
|
-
"eslint": "8.
|
|
101
|
+
"eslint": "8.17.0",
|
|
102
102
|
"jest": "27.5.1",
|
|
103
|
-
"jest-image-snapshot": "
|
|
103
|
+
"jest-image-snapshot": "5.1.0",
|
|
104
104
|
"playwright-chromium": "1.21.1",
|
|
105
105
|
"react": "17.0.2",
|
|
106
106
|
"react-dom": "17.0.2",
|
package/CHANGELOG.md
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
# @crxjs/vite-plugin
|
|
2
|
-
|
|
3
|
-
## 1.0.11
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- dc479d1: Fix global constant replacement in background
|
|
8
|
-
|
|
9
|
-
## 1.0.10
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- f35c49e: Update READMEs
|
|
14
|
-
|
|
15
|
-
## 1.0.9
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- 8941353: Remove & refactor use of fs-extra
|
|
20
|
-
|
|
21
|
-
## 1.0.8
|
|
22
|
-
|
|
23
|
-
### Patch Changes
|
|
24
|
-
|
|
25
|
-
- 8a09cb9: Optimize rollup input
|
|
26
|
-
|
|
27
|
-
## 1.0.7
|
|
28
|
-
|
|
29
|
-
### Patch Changes
|
|
30
|
-
|
|
31
|
-
- e1604d8: Strip paths from content script resource match patterns
|
|
32
|
-
|
|
33
|
-
## 1.0.6
|
|
34
|
-
|
|
35
|
-
### Patch Changes
|
|
36
|
-
|
|
37
|
-
- 63d102f: Automatically ignores `build.outDir` for server HMR, so the file
|
|
38
|
-
writer doesn't trigger a full reload.
|
|
39
|
-
|
|
40
|
-
Fixes flaky HMR updates for content scripts; Tailwind should work fine now 🥳
|
|
41
|
-
|
|
42
|
-
- a1e2728: Fix isImporter recursion
|
|
43
|
-
|
|
44
|
-
## 1.0.5
|
|
45
|
-
|
|
46
|
-
### Patch Changes
|
|
47
|
-
|
|
48
|
-
- 86adbec: Sometimes during development, an extension page may open before the
|
|
49
|
-
service worker has a chance to control fetch. The HTML file will load from the
|
|
50
|
-
file system, but the script tag might load from the dev server. This PR adds a
|
|
51
|
-
precontroller loader plugin to the dev server so that the extension page will
|
|
52
|
-
reload and the fetch handler will get the real HTML file from the server.
|
|
53
|
-
|
|
54
|
-
## 1.0.4
|
|
55
|
-
|
|
56
|
-
### Patch Changes
|
|
57
|
-
|
|
58
|
-
- b83a4bd: Check for manifest assets first in the project root, then check in
|
|
59
|
-
the public dir. Throw an informative error if the file does not exist in
|
|
60
|
-
either dir.
|
|
61
|
-
|
|
62
|
-
## 1.0.3
|
|
63
|
-
|
|
64
|
-
### Patch Changes
|
|
65
|
-
|
|
66
|
-
- 8b2e587: check service worker on interval from extension page
|
|
67
|
-
|
|
68
|
-
## 1.0.2
|
|
69
|
-
|
|
70
|
-
### Patch Changes
|
|
71
|
-
|
|
72
|
-
- be8a1de: Remove unused code that throws when web accessible resources contains
|
|
73
|
-
an HTML file.
|
|
74
|
-
|
|
75
|
-
## 1.0.1
|
|
76
|
-
|
|
77
|
-
### Patch Changes
|
|
78
|
-
|
|
79
|
-
- d2b4f9e: feat: allow hash in manifest html urls
|