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.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1856,7 +1856,8 @@ async function importEntrypointFile(path9, config) {
|
|
|
1856
1856
|
"node_modules/wxt/dist/virtual-modules/fake-browser.js"
|
|
1857
1857
|
)
|
|
1858
1858
|
},
|
|
1859
|
-
extensions
|
|
1859
|
+
// List of extensions to transform with esbuild
|
|
1860
|
+
extensions: [".ts", ".cts", ".mts", ".tsx", ".js", ".cjs", ".mjs", ".jsx"],
|
|
1860
1861
|
transform(opts) {
|
|
1861
1862
|
const isEntrypoint = opts.filename === normalPath;
|
|
1862
1863
|
return transformSync(
|
|
@@ -2125,13 +2126,13 @@ var PATH_GLOB_TO_TYPE_MAP = {
|
|
|
2125
2126
|
"*.sidepanel/index.html": "sidepanel",
|
|
2126
2127
|
"devtools.html": "devtools",
|
|
2127
2128
|
"devtools/index.html": "devtools",
|
|
2128
|
-
"background.
|
|
2129
|
-
"background/index.
|
|
2129
|
+
"background.[jt]s": "background",
|
|
2130
|
+
"background/index.[jt]s": "background",
|
|
2130
2131
|
[VIRTUAL_NOOP_BACKGROUND_MODULE_ID]: "background",
|
|
2131
|
-
"content.
|
|
2132
|
-
"content/index.
|
|
2133
|
-
"*.content.
|
|
2134
|
-
"*.content/index.
|
|
2132
|
+
"content.[jt]s?(x)": "content-script",
|
|
2133
|
+
"content/index.[jt]s?(x)": "content-script",
|
|
2134
|
+
"*.content.[jt]s?(x)": "content-script",
|
|
2135
|
+
"*.content/index.[jt]s?(x)": "content-script",
|
|
2135
2136
|
[`content.${CSS_EXTENSIONS_PATTERN}`]: "content-script-style",
|
|
2136
2137
|
[`*.content.${CSS_EXTENSIONS_PATTERN}`]: "content-script-style",
|
|
2137
2138
|
[`content/index.${CSS_EXTENSIONS_PATTERN}`]: "content-script-style",
|
|
@@ -2142,7 +2143,7 @@ var PATH_GLOB_TO_TYPE_MAP = {
|
|
|
2142
2143
|
"options/index.html": "options",
|
|
2143
2144
|
"*.html": "unlisted-page",
|
|
2144
2145
|
"*/index.html": "unlisted-page",
|
|
2145
|
-
"*.
|
|
2146
|
+
"*.[jt]s": "unlisted-script",
|
|
2146
2147
|
"*/index.ts": "unlisted-script",
|
|
2147
2148
|
[`*.${CSS_EXTENSIONS_PATTERN}`]: "unlisted-style",
|
|
2148
2149
|
[`*/index.${CSS_EXTENSIONS_PATTERN}`]: "unlisted-style",
|
|
@@ -4495,7 +4496,7 @@ async function clean(root = process.cwd()) {
|
|
|
4495
4496
|
}
|
|
4496
4497
|
|
|
4497
4498
|
// package.json
|
|
4498
|
-
var version2 = "0.7.
|
|
4499
|
+
var version2 = "0.7.3";
|
|
4499
4500
|
|
|
4500
4501
|
// src/core/utils/defineConfig.ts
|
|
4501
4502
|
function defineConfig(config) {
|