wxt 0.7.2 → 0.7.3
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/cli.cjs +11 -10
- package/dist/index.cjs +10 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1867,7 +1867,8 @@ async function importEntrypointFile(path9, config) {
|
|
|
1867
1867
|
"node_modules/wxt/dist/virtual-modules/fake-browser.js"
|
|
1868
1868
|
)
|
|
1869
1869
|
},
|
|
1870
|
-
extensions
|
|
1870
|
+
// List of extensions to transform with esbuild
|
|
1871
|
+
extensions: [".ts", ".cts", ".mts", ".tsx", ".js", ".cjs", ".mjs", ".jsx"],
|
|
1871
1872
|
transform(opts) {
|
|
1872
1873
|
const isEntrypoint = opts.filename === normalPath;
|
|
1873
1874
|
return (0, import_esbuild.transformSync)(
|
|
@@ -2136,13 +2137,13 @@ var PATH_GLOB_TO_TYPE_MAP = {
|
|
|
2136
2137
|
"*.sidepanel/index.html": "sidepanel",
|
|
2137
2138
|
"devtools.html": "devtools",
|
|
2138
2139
|
"devtools/index.html": "devtools",
|
|
2139
|
-
"background.
|
|
2140
|
-
"background/index.
|
|
2140
|
+
"background.[jt]s": "background",
|
|
2141
|
+
"background/index.[jt]s": "background",
|
|
2141
2142
|
[VIRTUAL_NOOP_BACKGROUND_MODULE_ID]: "background",
|
|
2142
|
-
"content.
|
|
2143
|
-
"content/index.
|
|
2144
|
-
"*.content.
|
|
2145
|
-
"*.content/index.
|
|
2143
|
+
"content.[jt]s?(x)": "content-script",
|
|
2144
|
+
"content/index.[jt]s?(x)": "content-script",
|
|
2145
|
+
"*.content.[jt]s?(x)": "content-script",
|
|
2146
|
+
"*.content/index.[jt]s?(x)": "content-script",
|
|
2146
2147
|
[`content.${CSS_EXTENSIONS_PATTERN}`]: "content-script-style",
|
|
2147
2148
|
[`*.content.${CSS_EXTENSIONS_PATTERN}`]: "content-script-style",
|
|
2148
2149
|
[`content/index.${CSS_EXTENSIONS_PATTERN}`]: "content-script-style",
|
|
@@ -2153,7 +2154,7 @@ var PATH_GLOB_TO_TYPE_MAP = {
|
|
|
2153
2154
|
"options/index.html": "options",
|
|
2154
2155
|
"*.html": "unlisted-page",
|
|
2155
2156
|
"*/index.html": "unlisted-page",
|
|
2156
|
-
"*.
|
|
2157
|
+
"*.[jt]s": "unlisted-script",
|
|
2157
2158
|
"*/index.ts": "unlisted-script",
|
|
2158
2159
|
[`*.${CSS_EXTENSIONS_PATTERN}`]: "unlisted-style",
|
|
2159
2160
|
[`*/index.${CSS_EXTENSIONS_PATTERN}`]: "unlisted-style",
|
|
@@ -4506,7 +4507,7 @@ async function clean(root = process.cwd()) {
|
|
|
4506
4507
|
}
|
|
4507
4508
|
|
|
4508
4509
|
// package.json
|
|
4509
|
-
var version2 = "0.7.
|
|
4510
|
+
var version2 = "0.7.3";
|
|
4510
4511
|
|
|
4511
4512
|
// src/core/utils/defineConfig.ts
|
|
4512
4513
|
function defineConfig(config) {
|