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/index.d.cts CHANGED
@@ -565,7 +565,7 @@ type EntrypointGroup = Entrypoint | Entrypoint[];
565
565
  */
566
566
  declare function clean(root?: string): Promise<void>;
567
567
 
568
- var version = "0.7.2";
568
+ var version = "0.7.3";
569
569
 
570
570
  declare function defineConfig(config: UserConfig): UserConfig;
571
571
 
package/dist/index.d.ts CHANGED
@@ -565,7 +565,7 @@ type EntrypointGroup = Entrypoint | Entrypoint[];
565
565
  */
566
566
  declare function clean(root?: string): Promise<void>;
567
567
 
568
- var version = "0.7.2";
568
+ var version = "0.7.3";
569
569
 
570
570
  declare function defineConfig(config: UserConfig): UserConfig;
571
571
 
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: [".ts", ".tsx", ".cjs", ".js", ".mjs"],
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.ts": "background",
2129
- "background/index.ts": "background",
2129
+ "background.[jt]s": "background",
2130
+ "background/index.[jt]s": "background",
2130
2131
  [VIRTUAL_NOOP_BACKGROUND_MODULE_ID]: "background",
2131
- "content.ts?(x)": "content-script",
2132
- "content/index.ts?(x)": "content-script",
2133
- "*.content.ts?(x)": "content-script",
2134
- "*.content/index.ts?(x)": "content-script",
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
- "*.ts": "unlisted-script",
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.2";
4499
+ var version2 = "0.7.3";
4499
4500
 
4500
4501
  // src/core/utils/defineConfig.ts
4501
4502
  function defineConfig(config) {