@crxjs/vite-plugin 1.0.13 → 2.0.0-beta.1

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.
Files changed (4) hide show
  1. package/dist/index.cjs +1336 -1309
  2. package/dist/index.d.ts +31 -19
  3. package/dist/index.mjs +1331 -1305
  4. package/package.json +25 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crxjs/vite-plugin",
3
- "version": "1.0.13",
3
+ "version": "2.0.0-beta.1",
4
4
  "description": "Build Chrome Extensions with this Vite plugin.",
5
5
  "keywords": [
6
6
  "rollup-plugin",
@@ -42,6 +42,7 @@
42
42
  "client.d.ts"
43
43
  ],
44
44
  "scripts": {
45
+ "format": "prettier -w -c ../../.prettierrc.yaml",
45
46
  "build": "run-s build:clean build:js",
46
47
  "build:clean": "rimraf dist",
47
48
  "build:js": "rollup -c rollup.config.ts --configPlugin esbuild",
@@ -50,15 +51,12 @@
50
51
  "lint": "run-s lint:eslint lint:types",
51
52
  "lint:eslint": "eslint \"{src,test}/**/*.ts\"",
52
53
  "lint:types": "tsc --noEmit",
53
- "test": "run-s test:units test:update:*",
54
- "test:ci:e2e:build": "node --expose-gc ./node_modules/jest/bin/jest.js --logHeapUsage --runInBand --forceExit --testPathIgnorePatterns=\\(/node_modules/ /templates/ /mv3/\\) -t build",
55
- "test:ci:e2e:serve": "npm run test:ci:e2e:serve:cmd || npm run test:ci:e2e:serve:cmd",
56
- "test:ci:e2e:serve:cmd": "node --expose-gc ./node_modules/jest/bin/jest.js --logHeapUsage --runInBand --forceExit --testPathIgnorePatterns=\\(/node_modules/ /templates/ /mv3/\\) -t serve",
57
- "test:ci:mv3:build": "node --expose-gc ./node_modules/jest/bin/jest.js --logHeapUsage --runInBand --forceExit --testPathIgnorePatterns=\\(/node_modules/ /templates/ /e2e/\\) --updateSnapshot build",
58
- "test:ci:mv3:serve": "node --expose-gc ./node_modules/jest/bin/jest.js --logHeapUsage --runInBand --forceExit --testPathIgnorePatterns=\\(/node_modules/ /templates/ /e2e/\\) --updateSnapshot serve",
59
- "test:units": "jest src",
60
- "test:update:build": "jest build -u",
61
- "test:update:serve": "jest serve -u"
54
+ "test": "vitest --mode unit",
55
+ "test:e2e": "vitest --mode e2e",
56
+ "test:run": "run-s test:run:*",
57
+ "test:run:out": "vitest --run --mode out",
58
+ "test:run:e2e": "vitest --run --mode e2e",
59
+ "test:update": "run-s \"test:run:out --update\" \"test:run:e2e --update\""
62
60
  },
63
61
  "dependencies": {
64
62
  "@rollup/pluginutils": "^4.1.2",
@@ -70,37 +68,41 @@
70
68
  "es-module-lexer": "^0.10.0",
71
69
  "fast-glob": "^3.2.11",
72
70
  "fs-extra": "^10.0.1",
71
+ "get-port": "^6.1.2",
73
72
  "jsesc": "^3.0.2",
74
73
  "magic-string": "^0.26.0",
75
74
  "picocolors": "^1.0.0",
76
75
  "react-refresh": "^0.13.0",
77
- "rollup": "^2.70.2"
76
+ "rollup": "2.78.1"
78
77
  },
79
78
  "devDependencies": {
80
79
  "@extend-chrome/messages": "1.2.2",
81
80
  "@extend-chrome/storage": "1.5.0",
82
81
  "@rollup/plugin-alias": "3.1.9",
83
82
  "@rollup/plugin-commonjs": "21.1.0",
83
+ "@rollup/plugin-json": "^4.1.0",
84
84
  "@rollup/plugin-node-resolve": "13.2.0",
85
+ "@sveltejs/vite-plugin-svelte": "1.0.9",
85
86
  "@types/acorn": "4.0.6",
86
87
  "@types/chrome": "0.0.190",
87
88
  "@types/debug": "4.1.7",
88
89
  "@types/fs-extra": "9.0.13",
89
- "@types/jest": "27.5.2",
90
- "@types/jest-image-snapshot": "4.3.1",
90
+ "@types/jest-image-snapshot": "^5.1.0",
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
95
  "@typescript-eslint/eslint-plugin": "5.27.1",
96
96
  "@typescript-eslint/parser": "5.27.1",
97
- "@vitejs/plugin-react": "1.3.2",
98
- "@vitejs/plugin-vue": "2.3.3",
97
+ "@vitejs/plugin-react": "^2.1.0",
98
+ "@vitejs/plugin-vue": "3.1.0",
99
+ "chokidar": "^3.5.3",
99
100
  "esbuild": "0.14.43",
100
101
  "esbuild-runner": "2.2.1",
101
102
  "eslint": "8.17.0",
102
- "jest": "27.5.1",
103
- "jest-image-snapshot": "5.1.0",
103
+ "eslint-plugin-react": "^7.29.4",
104
+ "jest-image-snapshot": "^5.2.0",
105
+ "npm-run-all": "^4.1.5",
104
106
  "playwright-chromium": "1.21.1",
105
107
  "react": "17.0.2",
106
108
  "react-dom": "17.0.2",
@@ -108,16 +110,18 @@
108
110
  "rollup-plugin-dts": "^4.2.0",
109
111
  "rollup-plugin-esbuild": "4.9.1",
110
112
  "rxjs": "7.5.5",
113
+ "svelte": "^3.48.0",
111
114
  "typescript": "^4.6.4",
112
- "vite": "^2.9.5",
113
- "vite-plugin-inspect": "0.5.0",
115
+ "vite": "^3.1.7",
116
+ "vite-plugin-inspect": "0.7.2",
117
+ "vitest": "^0.23.4",
114
118
  "vue": "3.2.36"
115
119
  },
116
120
  "peerDependencies": {
117
- "vite": ">=2.9.0"
121
+ "vite": "^2.9.0 <= ^3.1.7"
118
122
  },
119
123
  "optionalDependencies": {
120
- "@vitejs/plugin-react": ">=1.2.0"
124
+ "@vitejs/plugin-react": "*"
121
125
  },
122
126
  "engines": {
123
127
  "node": ">=14"