rspack-plugin-svg-sprite 1.5.1 → 1.5.2
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/README.md +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
[](https://github.com/yichenzhu1337/rspack-plugin-svg-sprite/blob/main/LICENSE)
|
|
10
10
|
[](https://bundlephobia.com/package/rspack-plugin-svg-sprite)
|
|
11
11
|
|
|
12
|
-
**[Live Demo](https://yichenzhu1337.github.io/rspack-plugin-svg-sprite/)** | **[npm](https://www.npmjs.com/package/rspack-plugin-svg-sprite)** | **[
|
|
12
|
+
**[Live Demo](https://yichenzhu1337.github.io/rspack-plugin-svg-sprite/)** | **[npm](https://www.npmjs.com/package/rspack-plugin-svg-sprite)** | **[npmcharts](https://npmcharts.com/compare/rspack-plugin-svg-sprite?minimal=true)**
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
15
|
npm install rspack-plugin-svg-sprite -D
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
const plugin_1 = __importDefault(require("./plugin"));
|
|
6
|
+
// Never runs. Node finds the named exports of a CommonJS module by scanning its source,
|
|
7
|
+
// and the `module.exports = Object.assign(...)` emitted above is opaque to that scan.
|
|
8
|
+
// This literal makes `import { SvgSpritePlugin } from 'rspack-plugin-svg-sprite'` work in ESM.
|
|
9
|
+
// eslint-disable-next-line no-constant-binary-expression, @typescript-eslint/no-unused-expressions
|
|
10
|
+
0 && (module.exports = { SvgSpritePlugin: plugin_1.default });
|
|
6
11
|
module.exports = Object.assign(plugin_1.default, {
|
|
7
12
|
SvgSpritePlugin: plugin_1.default,
|
|
8
13
|
default: plugin_1.default,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,sDAAuC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,sDAAuC;AAOvC,wFAAwF;AACxF,sFAAsF;AACtF,+FAA+F;AAC/F,mGAAmG;AACnG,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG,EAAE,eAAe,EAAf,gBAAe,EAAE,CAAC,CAAC;AAT5C,iBAAS,MAAM,CAAC,MAAM,CAAC,gBAAe,EAAE;IACtC,eAAe,EAAf,gBAAe;IACf,OAAO,EAAE,gBAAe;CACzB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rspack-plugin-svg-sprite",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "SVG sprite loader and plugin for Rspack — drop-in replacement for svg-sprite-loader with inline and extract mode support",
|
|
5
5
|
"author": "Yichen Zhu",
|
|
6
6
|
"license": "MIT",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"typescript": "^5.9.3",
|
|
118
118
|
"typescript-eslint": "^8.56.0"
|
|
119
119
|
},
|
|
120
|
-
"packageManager": "pnpm@
|
|
120
|
+
"packageManager": "pnpm@12.18.0",
|
|
121
121
|
"release": {
|
|
122
122
|
"branches": [
|
|
123
123
|
"main"
|