@crxjs/vite-plugin 2.0.0-beta.6 → 2.0.0-beta.8

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 CHANGED
File without changes
package/dist/index.mjs CHANGED
@@ -1345,7 +1345,7 @@ const pluginManifest = () => {
1345
1345
  name: "crx:manifest-loader",
1346
1346
  enforce: "pre",
1347
1347
  buildStart(options) {
1348
- if (typeof options.input !== "undefined") {
1348
+ if (typeof options.input !== "undefined" && !("ssr" in this)) {
1349
1349
  refId = this.emitFile({
1350
1350
  type: "chunk",
1351
1351
  id: manifestId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crxjs/vite-plugin",
3
- "version": "2.0.0-beta.6",
3
+ "version": "2.0.0-beta.8",
4
4
  "description": "Build Chrome Extensions with this Vite plugin.",
5
5
  "keywords": [
6
6
  "rollup-plugin",
@@ -45,23 +45,6 @@
45
45
  "schema",
46
46
  "client.d.ts"
47
47
  ],
48
- "scripts": {
49
- "format": "prettier -w -c ../../.prettierrc.yaml",
50
- "build": "run-s build:clean build:js",
51
- "build:clean": "rimraf dist",
52
- "build:js": "rollup -c rollup.config.ts --configPlugin esbuild",
53
- "dev:js": "npm run build:js -- -w",
54
- "dev:lint": "tsc --noEmit --watch",
55
- "lint": "run-s lint:eslint lint:types",
56
- "lint:eslint": "eslint \"{src,test}/**/*.ts\"",
57
- "lint:types": "tsc --noEmit",
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\""
64
- },
65
48
  "dependencies": {
66
49
  "@rollup/pluginutils": "^4.1.2",
67
50
  "@webcomponents/custom-elements": "^1.5.0",
@@ -84,7 +67,7 @@
84
67
  "@extend-chrome/storage": "1.5.0",
85
68
  "@rollup/plugin-alias": "4.0.2",
86
69
  "@rollup/plugin-commonjs": "21.1.0",
87
- "@rollup/plugin-json": "^4.1.0",
70
+ "@rollup/plugin-json": "^5.0.0",
88
71
  "@rollup/plugin-node-resolve": "13.2.0",
89
72
  "@sveltejs/vite-plugin-svelte": "1.1.0",
90
73
  "@types/acorn": "4.0.6",
@@ -101,7 +84,7 @@
101
84
  "@vitejs/plugin-react": "^2.1.0",
102
85
  "@vitejs/plugin-vue": "3.2.0",
103
86
  "chokidar": "^3.5.3",
104
- "esbuild": "0.15.12",
87
+ "esbuild": "0.15.16",
105
88
  "esbuild-runner": "2.2.2",
106
89
  "eslint": "8.26.0",
107
90
  "eslint-plugin-react": "^7.29.4",
@@ -119,5 +102,22 @@
119
102
  "vite-plugin-inspect": "0.7.5",
120
103
  "vitest": "0.24.3",
121
104
  "vue": "3.2.41"
105
+ },
106
+ "scripts": {
107
+ "format": "prettier -w -c ../../.prettierrc.yaml",
108
+ "build": "run-s build:clean build:js",
109
+ "build:clean": "rimraf dist",
110
+ "build:js": "rollup -c rollup.config.ts --configPlugin esbuild",
111
+ "dev:js": "npm run build:js -- -w",
112
+ "dev:lint": "tsc --noEmit --watch",
113
+ "lint": "run-s lint:eslint lint:types",
114
+ "lint:eslint": "eslint \"{src,test}/**/*.ts\"",
115
+ "lint:types": "tsc --noEmit",
116
+ "test": "vitest --mode unit",
117
+ "test:e2e": "vitest --mode e2e",
118
+ "test:run": "run-s test:run:*",
119
+ "test:run:out": "vitest --run --mode out",
120
+ "test:run:e2e": "vitest --run --mode e2e",
121
+ "test:update": "run-s \"test:run:out --update\" \"test:run:e2e --update\""
122
122
  }
123
- }
123
+ }