@crxjs/vite-plugin 1.0.13 → 1.0.14
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 +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -133,6 +133,9 @@ function encodeManifest(manifest) {
|
|
|
133
133
|
return `export default ${json}`;
|
|
134
134
|
}
|
|
135
135
|
const stubMatchPattern = (pattern) => {
|
|
136
|
+
if (pattern === "<all_urls>") {
|
|
137
|
+
return pattern;
|
|
138
|
+
}
|
|
136
139
|
const [schema, rest] = pattern.split("://");
|
|
137
140
|
const [origin, pathname] = rest.split("/");
|
|
138
141
|
const root = `${schema}://${origin}`;
|
package/dist/index.mjs
CHANGED
|
@@ -100,6 +100,9 @@ function encodeManifest(manifest) {
|
|
|
100
100
|
return `export default ${json}`;
|
|
101
101
|
}
|
|
102
102
|
const stubMatchPattern = (pattern) => {
|
|
103
|
+
if (pattern === "<all_urls>") {
|
|
104
|
+
return pattern;
|
|
105
|
+
}
|
|
103
106
|
const [schema, rest] = pattern.split("://");
|
|
104
107
|
const [origin, pathname] = rest.split("/");
|
|
105
108
|
const root = `${schema}://${origin}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crxjs/vite-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "Build Chrome Extensions with this Vite plugin.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rollup-plugin",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"vue": "3.2.36"
|
|
115
115
|
},
|
|
116
116
|
"peerDependencies": {
|
|
117
|
-
"vite": "
|
|
117
|
+
"vite": "^2.9.0"
|
|
118
118
|
},
|
|
119
119
|
"optionalDependencies": {
|
|
120
120
|
"@vitejs/plugin-react": ">=1.2.0"
|