wxt 0.5.3 → 0.5.5

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 CHANGED
@@ -845,6 +845,10 @@ async function buildSingleEntrypoint(entrypoint, config) {
845
845
  assetFileNames: `assets/${entrypoint.name}.[ext]`
846
846
  }
847
847
  }
848
+ },
849
+ define: {
850
+ // See https://github.com/aklinker1/vite-plugin-web-extension/issues/96
851
+ "process.env.NODE_ENV": JSON.stringify(config.mode)
848
852
  }
849
853
  };
850
854
  const entryConfig = vite3.mergeConfig(
@@ -1224,6 +1228,7 @@ var PATH_GLOB_TO_TYPE_MAP = {
1224
1228
  "devtools.html": "devtools",
1225
1229
  "devtools/index.html": "devtools",
1226
1230
  "background.ts": "background",
1231
+ "background/index.ts": "background",
1227
1232
  [VIRTUAL_NOOP_BACKGROUND_MODULE_ID]: "background",
1228
1233
  "content.ts?(x)": "content-script",
1229
1234
  "content/index.ts?(x)": "content-script",
@@ -1243,8 +1248,8 @@ var PATH_GLOB_TO_TYPE_MAP = {
1243
1248
  "*/index.ts": "unlisted-script",
1244
1249
  [`*.${CSS_EXTENSIONS_PATTERN}`]: "unlisted-style",
1245
1250
  [`*/index.${CSS_EXTENSIONS_PATTERN}`]: "unlisted-style",
1246
- // Don't warn about any files in subdirectories, like CSS or JS entrypoints for HTML files
1247
- "*/*": "ignored"
1251
+ // Don't warn about any files in subdirectories, like CSS or JS entrypoints for HTML files or tests
1252
+ "*/**": "ignored"
1248
1253
  };
1249
1254
  var CONTENT_SCRIPT_OUT_DIR = "content-scripts";
1250
1255
 
@@ -2282,7 +2287,7 @@ async function clean(root = process.cwd()) {
2282
2287
  }
2283
2288
 
2284
2289
  // package.json
2285
- var version2 = "0.5.3";
2290
+ var version2 = "0.5.5";
2286
2291
 
2287
2292
  // src/core/utils/defineConfig.ts
2288
2293
  function defineConfig(config) {