rsbuild-plugin-virtual-module 0.4.1 → 0.4.3
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.cjs +3 -3
- package/dist/index.d.ts +1 -1
- package/package.json +25 -25
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The simplest and most flexible way to build with a compiling magic 🪄
|
|
4
4
|
|
|
5
|
-
An Rsbuild plugin that allows you to create virtual modules, the pro version of [rspack-plugin-virtual-module](https://github.com/
|
|
5
|
+
An Rsbuild plugin that allows you to create virtual modules, the pro version of [rspack-plugin-virtual-module](https://github.com/rstackjs/rspack-plugin-virtual-module) with loader API.
|
|
6
6
|
|
|
7
7
|
<p>
|
|
8
8
|
<a href="https://npmjs.com/package/rsbuild-plugin-virtual-module">
|
package/dist/index.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var __webpack_require__ = {};
|
|
|
13
13
|
})();
|
|
14
14
|
(()=>{
|
|
15
15
|
__webpack_require__.r = (exports1)=>{
|
|
16
|
-
if (
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
17
|
value: 'Module'
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports1, '__esModule', {
|
|
@@ -74,10 +74,10 @@ const pluginVirtualModule = (pluginOptions = {})=>({
|
|
|
74
74
|
});
|
|
75
75
|
exports.PLUGIN_VIRTUAL_MODULE_NAME = __webpack_exports__.PLUGIN_VIRTUAL_MODULE_NAME;
|
|
76
76
|
exports.pluginVirtualModule = __webpack_exports__.pluginVirtualModule;
|
|
77
|
-
for(var
|
|
77
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
78
78
|
"PLUGIN_VIRTUAL_MODULE_NAME",
|
|
79
79
|
"pluginVirtualModule"
|
|
80
|
-
].indexOf(
|
|
80
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
81
81
|
Object.defineProperty(exports, '__esModule', {
|
|
82
82
|
value: true
|
|
83
83
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -13,5 +13,5 @@ interface PluginVirtualModuleOptions {
|
|
|
13
13
|
}
|
|
14
14
|
declare const PLUGIN_VIRTUAL_MODULE_NAME = "rsbuild:virtual-module";
|
|
15
15
|
declare const pluginVirtualModule: (pluginOptions?: PluginVirtualModuleOptions) => RsbuildPlugin;
|
|
16
|
-
export { PLUGIN_VIRTUAL_MODULE_NAME, pluginVirtualModule };
|
|
17
16
|
export type { PluginVirtualModuleOptions, VirtualModules };
|
|
17
|
+
export { PLUGIN_VIRTUAL_MODULE_NAME, pluginVirtualModule };
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rsbuild-plugin-virtual-module",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
|
-
"url": "https://github.com/
|
|
6
|
+
"url": "git+https://github.com/rstackjs/rsbuild-plugin-virtual-module.git"
|
|
7
7
|
},
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"type": "module",
|
|
@@ -14,46 +14,46 @@
|
|
|
14
14
|
"require": "./dist/index.cjs"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
-
"main": "./dist/index.
|
|
18
|
-
"module": "./dist/index.
|
|
17
|
+
"main": "./dist/index.cjs",
|
|
18
|
+
"module": "./dist/index.js",
|
|
19
19
|
"types": "./dist/index.d.ts",
|
|
20
20
|
"files": [
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
|
-
"scripts": {
|
|
24
|
-
"build": "rslib build",
|
|
25
|
-
"dev": "rslib build --watch",
|
|
26
|
-
"lint": "biome check .",
|
|
27
|
-
"lint:write": "biome check . --write",
|
|
28
|
-
"prepare": "simple-git-hooks && npm run build",
|
|
29
|
-
"test": "playwright test",
|
|
30
|
-
"bump": "npx bumpp"
|
|
31
|
-
},
|
|
32
23
|
"simple-git-hooks": {
|
|
33
|
-
"pre-commit": "
|
|
24
|
+
"pre-commit": "pnpm run lint:write"
|
|
34
25
|
},
|
|
35
26
|
"devDependencies": {
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
40
|
-
"@types/node": "^24.
|
|
41
|
-
"
|
|
27
|
+
"@playwright/test": "^1.60.0",
|
|
28
|
+
"@rsbuild/core": "^2.0.7",
|
|
29
|
+
"@rslib/core": "^0.21.5",
|
|
30
|
+
"@rslint/core": "^0.5.3",
|
|
31
|
+
"@types/node": "^24.12.4",
|
|
32
|
+
"@typescript/native-preview": "7.0.0-dev.20260527.1",
|
|
33
|
+
"playwright": "^1.60.0",
|
|
34
|
+
"prettier": "^3.8.3",
|
|
42
35
|
"simple-git-hooks": "^2.13.1",
|
|
43
|
-
"typescript": "
|
|
44
|
-
"rsbuild-plugin-virtual-module": "
|
|
36
|
+
"typescript": "6.0.3",
|
|
37
|
+
"rsbuild-plugin-virtual-module": "0.4.3"
|
|
45
38
|
},
|
|
46
39
|
"peerDependencies": {
|
|
47
|
-
"@rsbuild/core": "1.
|
|
40
|
+
"@rsbuild/core": "^1.0.0 || ^2.0.0-0"
|
|
48
41
|
},
|
|
49
42
|
"peerDependenciesMeta": {
|
|
50
43
|
"@rsbuild/core": {
|
|
51
44
|
"optional": true
|
|
52
45
|
}
|
|
53
46
|
},
|
|
54
|
-
"packageManager": "pnpm@10.16.1",
|
|
55
47
|
"publishConfig": {
|
|
56
48
|
"access": "public",
|
|
57
49
|
"registry": "https://registry.npmjs.org/"
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"build": "rslib",
|
|
53
|
+
"dev": "rslib -w",
|
|
54
|
+
"lint": "rslint && prettier -c .",
|
|
55
|
+
"lint:write": "rslint --fix && prettier -w .",
|
|
56
|
+
"test": "playwright test",
|
|
57
|
+
"bump": "npx bumpp"
|
|
58
58
|
}
|
|
59
|
-
}
|
|
59
|
+
}
|