@rsbuild/plugin-svgr 1.0.5 → 1.0.7
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 +11 -11
- package/compiled/file-loader/index.js +14 -14
- package/compiled/url-loader/index.js +22 -22
- package/dist/index.cjs +61 -149
- package/dist/index.js +31 -93
- package/dist/loader.mjs +43 -0
- package/package.json +7 -6
- package/dist/loader.cjs +0 -108
package/README.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
<a href="https://rsbuild.dev" target="blank"><img src="https://github.com/web-infra-dev/rsbuild/assets/7237365/84abc13e-b620-468f-a90b-dbf28e7e9427" alt="Rsbuild Logo" /></a>
|
|
3
|
-
</p>
|
|
1
|
+
# @rsbuild/plugin-svgr
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+
An Rsbuild plugin to use SVGR to transform SVG to React components via SVGR.
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
<p>
|
|
6
|
+
<a href="https://npmjs.com/package/@rsbuild/plugin-svgr">
|
|
7
|
+
<img src="https://img.shields.io/npm/v/@rsbuild/plugin-svgr?style=flat-square&colorA=564341&colorB=EDED91" alt="npm version" />
|
|
8
|
+
</a>
|
|
9
|
+
<img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square&colorA=564341&colorB=EDED91" alt="license" />
|
|
10
|
+
<a href="https://npmcharts.com/compare/@rsbuild/plugin-svgr?minimal=true"><img src="https://img.shields.io/npm/dm/@rsbuild/plugin-svgr.svg?style=flat-square&colorA=564341&colorB=EDED91" alt="downloads" /></a>
|
|
11
|
+
</p>
|
|
8
12
|
|
|
9
13
|
## Documentation
|
|
10
14
|
|
|
11
|
-
https://rsbuild.dev/
|
|
12
|
-
|
|
13
|
-
## Contributing
|
|
14
|
-
|
|
15
|
-
Please read the [Contributing Guide](https://github.com/web-infra-dev/rsbuild/blob/main/CONTRIBUTING.md).
|
|
15
|
+
See [Documentation](https://rsbuild.dev/plugins/list/plugin-svgr).
|
|
16
16
|
|
|
17
17
|
## License
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
[MIT](https://github.com/web-infra-dev/rsbuild/blob/main/LICENSE).
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
4
|
+
159: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
const loader = __nccwpck_require__(25);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.raw = loader.raw;
|
|
8
8
|
},
|
|
9
|
-
|
|
9
|
+
25: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports["default"] = loader;
|
|
12
12
|
exports.raw = void 0;
|
|
13
|
-
var _path = _interopRequireDefault(__nccwpck_require__(
|
|
14
|
-
var _loaderUtils = __nccwpck_require__(
|
|
15
|
-
var _schemaUtils = __nccwpck_require__(
|
|
16
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
17
|
-
var _utils = __nccwpck_require__(
|
|
13
|
+
var _path = _interopRequireDefault(__nccwpck_require__(928));
|
|
14
|
+
var _loaderUtils = __nccwpck_require__(328);
|
|
15
|
+
var _schemaUtils = __nccwpck_require__(979);
|
|
16
|
+
var _options = _interopRequireDefault(__nccwpck_require__(324));
|
|
17
|
+
var _utils = __nccwpck_require__(44);
|
|
18
18
|
function _interopRequireDefault(obj) {
|
|
19
19
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
20
20
|
}
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
const raw = true;
|
|
80
80
|
exports.raw = raw;
|
|
81
81
|
},
|
|
82
|
-
|
|
82
|
+
44: (__unused_webpack_module, exports) => {
|
|
83
83
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
84
84
|
exports.normalizePath = normalizePath;
|
|
85
85
|
function normalizePath(path, stripTrailing) {
|
|
@@ -105,16 +105,16 @@
|
|
|
105
105
|
return prefix + segs.join("/");
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
|
-
|
|
108
|
+
979: (module) => {
|
|
109
109
|
module.exports = require("./schema-utils");
|
|
110
110
|
},
|
|
111
|
-
|
|
111
|
+
328: (module) => {
|
|
112
112
|
module.exports = require("loader-utils");
|
|
113
113
|
},
|
|
114
|
-
|
|
114
|
+
928: (module) => {
|
|
115
115
|
module.exports = require("path");
|
|
116
116
|
},
|
|
117
|
-
|
|
117
|
+
324: (module) => {
|
|
118
118
|
module.exports = JSON.parse(
|
|
119
119
|
'{"additionalProperties":true,"properties":{"name":{"description":"The filename template for the target file(s) (https://github.com/webpack-contrib/file-loader#name).","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"outputPath":{"description":"A filesystem path where the target file(s) will be placed (https://github.com/webpack-contrib/file-loader#outputpath).","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"publicPath":{"description":"A custom public path for the target file(s) (https://github.com/webpack-contrib/file-loader#publicpath).","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"postTransformPublicPath":{"description":"A custom transformation function for post-processing the publicPath (https://github.com/webpack-contrib/file-loader#posttransformpublicpath).","instanceof":"Function"},"context":{"description":"A custom file context (https://github.com/webpack-contrib/file-loader#context).","type":"string"},"emitFile":{"description":"Enables/Disables emit files (https://github.com/webpack-contrib/file-loader#emitfile).","type":"boolean"},"regExp":{"description":"A Regular Expression to one or many parts of the target file path. The capture groups can be reused in the name property using [N] placeholder (https://github.com/webpack-contrib/file-loader#regexp).","anyOf":[{"type":"string"},{"instanceof":"RegExp"}]},"esModule":{"description":"By default, file-loader generates JS modules that use the ES modules syntax.","type":"boolean"}},"type":"object"}',
|
|
120
120
|
);
|
|
@@ -142,6 +142,6 @@
|
|
|
142
142
|
}
|
|
143
143
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
144
144
|
__nccwpck_require__.ab = __dirname + "/";
|
|
145
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
145
|
+
var __webpack_exports__ = __nccwpck_require__(159);
|
|
146
146
|
module.exports = __webpack_exports__;
|
|
147
147
|
})();
|