@crxjs/vite-plugin 1.0.14 → 2.0.0-beta.10
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/README.md +1 -1
- package/dist/index.cjs +2 -3565
- package/dist/index.d.ts +33 -20
- package/dist/index.mjs +1292 -3007
- package/package.json +41 -43
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crxjs/vite-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.10",
|
|
4
4
|
"description": "Build Chrome Extensions with this Vite plugin.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rollup-plugin",
|
|
@@ -23,13 +23,17 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"author": "Jack and Amy Steam <jacksteamdev@gmail.com>",
|
|
26
|
+
"type": "module",
|
|
26
27
|
"exports": {
|
|
27
28
|
".": {
|
|
28
|
-
"require": "./
|
|
29
|
+
"require": "./index.cjs",
|
|
29
30
|
"import": "./dist/index.mjs",
|
|
30
31
|
"types": "./dist/index.d.ts"
|
|
31
32
|
},
|
|
32
|
-
"./*": "./*"
|
|
33
|
+
"./*": "./*",
|
|
34
|
+
"./client": {
|
|
35
|
+
"types": "./client.d.ts"
|
|
36
|
+
}
|
|
33
37
|
},
|
|
34
38
|
"main": "dist/index.cjs",
|
|
35
39
|
"module": "dist/index.mjs",
|
|
@@ -42,6 +46,7 @@
|
|
|
42
46
|
"client.d.ts"
|
|
43
47
|
],
|
|
44
48
|
"scripts": {
|
|
49
|
+
"format": "prettier -w -c ../../.prettierrc.yaml",
|
|
45
50
|
"build": "run-s build:clean build:js",
|
|
46
51
|
"build:clean": "rimraf dist",
|
|
47
52
|
"build:js": "rollup -c rollup.config.ts --configPlugin esbuild",
|
|
@@ -50,15 +55,12 @@
|
|
|
50
55
|
"lint": "run-s lint:eslint lint:types",
|
|
51
56
|
"lint:eslint": "eslint \"{src,test}/**/*.ts\"",
|
|
52
57
|
"lint:types": "tsc --noEmit",
|
|
53
|
-
"test": "
|
|
54
|
-
"test:
|
|
55
|
-
"test:
|
|
56
|
-
"test:
|
|
57
|
-
"test:
|
|
58
|
-
"test:
|
|
59
|
-
"test:units": "jest src",
|
|
60
|
-
"test:update:build": "jest build -u",
|
|
61
|
-
"test:update:serve": "jest serve -u"
|
|
58
|
+
"test": "vitest --mode unit",
|
|
59
|
+
"test:e2e": "vitest --mode e2e",
|
|
60
|
+
"test:run": "run-s test:run:*",
|
|
61
|
+
"test:run:out": "vitest --run --mode out",
|
|
62
|
+
"test:run:e2e": "vitest --run --mode e2e",
|
|
63
|
+
"test:update": "run-s \"test:run:out --update\" \"test:run:e2e --update\""
|
|
62
64
|
},
|
|
63
65
|
"dependencies": {
|
|
64
66
|
"@rollup/pluginutils": "^4.1.2",
|
|
@@ -74,52 +76,48 @@
|
|
|
74
76
|
"magic-string": "^0.26.0",
|
|
75
77
|
"picocolors": "^1.0.0",
|
|
76
78
|
"react-refresh": "^0.13.0",
|
|
77
|
-
"rollup": "
|
|
79
|
+
"rollup": "2.78.1",
|
|
80
|
+
"rxjs": "7.5.7"
|
|
78
81
|
},
|
|
79
82
|
"devDependencies": {
|
|
80
83
|
"@extend-chrome/messages": "1.2.2",
|
|
81
84
|
"@extend-chrome/storage": "1.5.0",
|
|
82
|
-
"@rollup/plugin-alias": "
|
|
85
|
+
"@rollup/plugin-alias": "4.0.2",
|
|
83
86
|
"@rollup/plugin-commonjs": "21.1.0",
|
|
87
|
+
"@rollup/plugin-json": "^5.0.0",
|
|
84
88
|
"@rollup/plugin-node-resolve": "13.2.0",
|
|
89
|
+
"@sveltejs/vite-plugin-svelte": "1.1.0",
|
|
85
90
|
"@types/acorn": "4.0.6",
|
|
86
|
-
"@types/chrome": "0.0.
|
|
91
|
+
"@types/chrome": "0.0.198",
|
|
87
92
|
"@types/debug": "4.1.7",
|
|
88
93
|
"@types/fs-extra": "9.0.13",
|
|
89
|
-
"@types/jest": "
|
|
90
|
-
"@types/jest-image-snapshot": "4.3.1",
|
|
94
|
+
"@types/jest-image-snapshot": "^5.1.0",
|
|
91
95
|
"@types/jsesc": "3.0.1",
|
|
92
96
|
"@types/node": "17.0.18",
|
|
93
|
-
"@types/react": "17.0.
|
|
94
|
-
"@types/react-dom": "17.0.
|
|
95
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
96
|
-
"@typescript-eslint/parser": "5.
|
|
97
|
-
"@vitejs/plugin-react": "1.
|
|
98
|
-
"@vitejs/plugin-vue": "2.
|
|
99
|
-
"
|
|
100
|
-
"esbuild
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
97
|
+
"@types/react": "17.0.52",
|
|
98
|
+
"@types/react-dom": "17.0.18",
|
|
99
|
+
"@typescript-eslint/eslint-plugin": "5.41.0",
|
|
100
|
+
"@typescript-eslint/parser": "5.41.0",
|
|
101
|
+
"@vitejs/plugin-react": "^2.1.0",
|
|
102
|
+
"@vitejs/plugin-vue": "3.2.0",
|
|
103
|
+
"chokidar": "^3.5.3",
|
|
104
|
+
"esbuild": "0.15.16",
|
|
105
|
+
"esbuild-runner": "2.2.2",
|
|
106
|
+
"eslint": "8.26.0",
|
|
107
|
+
"eslint-plugin-react": "^7.29.4",
|
|
108
|
+
"jest-image-snapshot": "^5.2.0",
|
|
109
|
+
"npm-run-all": "^4.1.5",
|
|
110
|
+
"playwright-chromium": "1.27.1",
|
|
105
111
|
"react": "17.0.2",
|
|
106
112
|
"react-dom": "17.0.2",
|
|
107
113
|
"rimraf": "3.0.2",
|
|
108
114
|
"rollup-plugin-dts": "^4.2.0",
|
|
109
|
-
"rollup-plugin-esbuild": "4.
|
|
110
|
-
"
|
|
115
|
+
"rollup-plugin-esbuild": "4.10.1",
|
|
116
|
+
"svelte": "^3.48.0",
|
|
111
117
|
"typescript": "^4.6.4",
|
|
112
|
-
"vite": "^
|
|
113
|
-
"vite-plugin-inspect": "0.5
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
"peerDependencies": {
|
|
117
|
-
"vite": "^2.9.0"
|
|
118
|
-
},
|
|
119
|
-
"optionalDependencies": {
|
|
120
|
-
"@vitejs/plugin-react": ">=1.2.0"
|
|
121
|
-
},
|
|
122
|
-
"engines": {
|
|
123
|
-
"node": ">=14"
|
|
118
|
+
"vite": "^3.1.7",
|
|
119
|
+
"vite-plugin-inspect": "0.7.5",
|
|
120
|
+
"vitest": "0.24.3",
|
|
121
|
+
"vue": "3.2.41"
|
|
124
122
|
}
|
|
125
123
|
}
|