@unocss/webpack 0.59.3 → 0.60.0

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
@@ -416,7 +416,7 @@ function WebpackPlugin(configOrPath, defaults) {
416
416
  return escapeCss(css);
417
417
  });
418
418
  if (replaced)
419
- compilation.assets[file] = new WebpackSources__default.RawSource(code);
419
+ compilation.assets[file] = new WebpackSources__default.SourceMapSource(code, file, compilation.assets[file].map());
420
420
  }
421
421
  });
422
422
  });
package/dist/index.d.cts CHANGED
@@ -12,4 +12,5 @@ interface WebpackPluginOptions<Theme extends object = object> extends UserConfig
12
12
  declare function defineConfig<Theme extends object>(config: WebpackPluginOptions<Theme>): WebpackPluginOptions<Theme>;
13
13
  declare function WebpackPlugin<Theme extends object>(configOrPath?: WebpackPluginOptions<Theme> | string, defaults?: UserConfigDefaults): webpack.WebpackPluginInstance;
14
14
 
15
- export { type WebpackPluginOptions, WebpackPlugin as default, defineConfig };
15
+ export = WebpackPlugin;
16
+ export { type WebpackPluginOptions, defineConfig };
package/dist/index.d.ts CHANGED
@@ -12,4 +12,5 @@ interface WebpackPluginOptions<Theme extends object = object> extends UserConfig
12
12
  declare function defineConfig<Theme extends object>(config: WebpackPluginOptions<Theme>): WebpackPluginOptions<Theme>;
13
13
  declare function WebpackPlugin<Theme extends object>(configOrPath?: WebpackPluginOptions<Theme> | string, defaults?: UserConfigDefaults): webpack.WebpackPluginInstance;
14
14
 
15
- export { type WebpackPluginOptions, WebpackPlugin as default, defineConfig };
15
+ export = WebpackPlugin;
16
+ export { type WebpackPluginOptions, defineConfig };
package/dist/index.mjs CHANGED
@@ -403,7 +403,7 @@ function WebpackPlugin(configOrPath, defaults) {
403
403
  return escapeCss(css);
404
404
  });
405
405
  if (replaced)
406
- compilation.assets[file] = new WebpackSources.RawSource(code);
406
+ compilation.assets[file] = new WebpackSources.SourceMapSource(code, file, compilation.assets[file].map());
407
407
  }
408
408
  });
409
409
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/webpack",
3
3
  "type": "module",
4
- "version": "0.59.3",
4
+ "version": "0.60.0",
5
5
  "description": "The Webpack plugin for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -46,11 +46,11 @@
46
46
  "@rollup/pluginutils": "^5.1.0",
47
47
  "chokidar": "^3.6.0",
48
48
  "fast-glob": "^3.3.2",
49
- "magic-string": "^0.30.9",
49
+ "magic-string": "^0.30.10",
50
50
  "unplugin": "^1.10.1",
51
51
  "webpack-sources": "^3.2.3",
52
- "@unocss/config": "0.59.3",
53
- "@unocss/core": "0.59.3"
52
+ "@unocss/config": "0.60.0",
53
+ "@unocss/core": "0.60.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/webpack": "^5.28.5",