extension-develop 2.0.0-rc.25 → 2.0.0-rc.27

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.
@@ -52,3 +52,4 @@ export declare function certRequired(): string;
52
52
  export declare function defaultPortInUse(port: number): string;
53
53
  export declare function noExtensionIdError(): string;
54
54
  export declare function deprecatedShadowRoot(): string;
55
+ export declare function isUsingCustomLoader(file: string): string;
@@ -0,0 +1 @@
1
+ export declare function loadLoaderOptions(projectPath: string, framework: 'vue' | 'svelte'): Promise<any>;
@@ -0,0 +1,9 @@
1
+ import { Compiler } from '@rspack/core';
2
+ import { type PluginInterface } from '../../reload-types';
3
+ export declare class GenerateReloaderExtension {
4
+ private readonly browser;
5
+ constructor(options: PluginInterface);
6
+ private copyRecursively;
7
+ private copyExtensionFiles;
8
+ apply(compiler: Compiler): void;
9
+ }
package/package.json CHANGED
@@ -8,22 +8,28 @@
8
8
  "engines": {
9
9
  "node": ">=18"
10
10
  },
11
- "name": "extension-develop",
12
- "version": "2.0.0-rc.25",
13
- "description": "The develop step of Extension.js",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/module.d.ts",
14
+ "import": "./dist/module.js",
15
+ "require": "./dist/module.js"
16
+ }
17
+ },
14
18
  "main": "./dist/module.js",
15
19
  "types": "./dist/module.d.ts",
16
20
  "files": [
17
21
  "dist"
18
22
  ],
23
+ "name": "extension-develop",
24
+ "version": "2.0.0-rc.27",
25
+ "description": "The develop step of Extension.js",
19
26
  "author": {
20
27
  "name": "Cezar Augusto",
21
28
  "email": "boss@cezaraugusto.net",
22
29
  "url": "https://cezaraugusto.com"
23
30
  },
24
31
  "dependencies": {
25
- "@colors/colors": "^1.6.0",
26
- "@rspack/core": "^1.3.1",
32
+ "@rspack/core": "^1.3.8",
27
33
  "@rspack/dev-server": "^1.1.1",
28
34
  "@swc/helpers": "^0.5.15",
29
35
  "@types/firefox-webext-browser": "^120.0.4",
@@ -31,17 +37,19 @@
31
37
  "adm-zip": "^0.5.16",
32
38
  "axios": "^1.8.4",
33
39
  "case-sensitive-paths-webpack-plugin": "^2.4.0",
40
+ "chalk": "^5.3.0",
34
41
  "chokidar": "^4.0.1",
35
- "chrome-location": "^1.2.1",
42
+ "chrome-location2": "2.0.0",
36
43
  "content-security-policy-parser": "^0.6.0",
37
44
  "cross-spawn": "^7.0.6",
38
45
  "csv-loader": "^3.0.5",
39
46
  "dotenv": "^16.4.7",
40
47
  "dotenv-webpack": "^8.1.0",
41
- "edge-location": "^1.0.0",
48
+ "edge-location": "^1.1.1",
49
+ "firefox-location2": "1.0.0",
42
50
  "firefox-profile": "^4.7.0",
43
51
  "fx-runner": "^1.4.0",
44
- "go-git-it": "2.0.4",
52
+ "go-git-it": "4.0.0",
45
53
  "ignore": "^6.0.2",
46
54
  "loader-utils": "^3.3.1",
47
55
  "micromatch": "^4.0.8",
@@ -61,6 +69,7 @@
61
69
  "ws": "^8.18.0"
62
70
  },
63
71
  "devDependencies": {
72
+ "@rslib/core": "^0.6.9",
64
73
  "@types/adm-zip": "^0.5.7",
65
74
  "@types/case-sensitive-paths-webpack-plugin": "^2.1.9",
66
75
  "@types/chrome": "^0.0.287",
@@ -69,6 +78,7 @@
69
78
  "@types/jest": "^29.5.14",
70
79
  "@types/loader-utils": "^2.0.6",
71
80
  "@types/node": "^22.10.1",
81
+ "@types/sass-loader": "8.0.9",
72
82
  "@types/webextension-polyfill": "^0.12.1",
73
83
  "@types/ws": "^8.5.13",
74
84
  "jest": "^29.7.0",
@@ -89,17 +99,16 @@
89
99
  "react-refresh": "^0.14.2",
90
100
  "sass-loader": "^16.0.4",
91
101
  "svelte-loader": "^3.2.4",
92
- "svelte-preprocess": "^6.0.3",
93
102
  "vue-loader": "^17.4.2",
94
103
  "vue-style-loader": "^4.1.3",
95
104
  "vue-template-compiler": "^2.7.16"
96
105
  },
97
106
  "scripts": {
98
107
  "clean": "rm -rf dist",
99
- "watch": "tsup-node ./module.ts --format cjs --dts --target=node18 --watch",
100
- "compile": "tsup-node ./module.ts --format cjs --dts --target=node18 --minify && bash install_scripts.sh",
101
- "test": "jest --no-cache --testPathPattern='webpack/.*/__spec__/.*\\.spec\\.*'",
102
- "test:coverage": "jest --no-cache --testPathPattern='webpack/.*/__spec__/.*\\.spec\\.ts' --coverage",
103
- "test:build": "jest ./build.spec.ts --no-cache --detectOpenHandles --forceExit"
108
+ "watch": "rslib build --watch",
109
+ "compile": "rslib build && bash install_scripts.sh",
110
+ "test": "vitest run",
111
+ "test:build": "vitest run build.spec.ts",
112
+ "test:coverage": "vitest run --coverage"
104
113
  }
105
114
  }