adnbn 0.2.3 → 0.2.4

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.
@@ -19,7 +19,6 @@ var HtmlRspackTagsPlugin = require('html-rspack-tags-plugin');
19
19
  var isEmail = require('validator/lib/isEmail');
20
20
  var isURL = require('validator/lib/isURL');
21
21
  var semver = require('semver');
22
- var cleanWebpackPlugin = require('clean-webpack-plugin');
23
22
  var rspackPlugin = require('@rsdoctor/rspack-plugin');
24
23
  var webpackMerge = require('webpack-merge');
25
24
 
@@ -861,6 +860,9 @@ var asset_default = definePlugin(() => {
861
860
  rules: [
862
861
  {
863
862
  test: /\.(png|apng|jpe?g|gif|webp|svg|avif|tiff|bmp|ico)$/i,
863
+ resourceQuery: {
864
+ not: [/react/]
865
+ },
864
866
  oneOf: [
865
867
  {
866
868
  resourceQuery: /(chrome|browser)/,
@@ -5304,7 +5306,8 @@ var output_default = definePlugin(() => {
5304
5306
  chunkFilename: filename,
5305
5307
  hotUpdateGlobal: camelApp + "HotUpdate",
5306
5308
  chunkLoadingGlobal: camelApp + "ChunkLoading",
5307
- uniqueName: kebabApp
5309
+ uniqueName: kebabApp,
5310
+ clean: config.command === "build" /* Build */
5308
5311
  }
5309
5312
  };
5310
5313
  }
@@ -7297,15 +7300,12 @@ var bundler_default = async (config) => {
7297
7300
  }
7298
7301
  });
7299
7302
  }
7300
- if (config.command == "watch" /* Watch */) {
7303
+ if (config.command === "watch" /* Watch */) {
7301
7304
  rspack3 = webpackMerge.merge(rspack3, {
7302
7305
  devtool: "inline-source-map"
7303
7306
  });
7304
7307
  }
7305
- if (config.command == "build" /* Build */) {
7306
- rspack3 = webpackMerge.merge(rspack3, {
7307
- plugins: [new cleanWebpackPlugin.CleanWebpackPlugin()]
7308
- });
7308
+ if (config.command === "build" /* Build */) {
7309
7309
  if (config.analyze) {
7310
7310
  rspack3 = webpackMerge.merge(rspack3, {
7311
7311
  plugins: [
@@ -7347,7 +7347,7 @@ var app_default = async (config) => {
7347
7347
 
7348
7348
  // package.json
7349
7349
  var name = "adnbn";
7350
- var version = "0.2.3";
7350
+ var version = "0.2.4";
7351
7351
 
7352
7352
  // src/cli/index.ts
7353
7353
  var cli = cac__default.default(name);