@rsbuild/plugin-svelte 1.0.11 → 1.0.12
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 +8 -8
- package/dist/index.d.ts +2 -2
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ An Rsbuild plugin to provide support for Svelte.
|
|
|
7
7
|
<img src="https://img.shields.io/npm/v/@rsbuild/plugin-svelte?style=flat-square&colorA=564341&colorB=EDED91" alt="npm version" />
|
|
8
8
|
</a>
|
|
9
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-svelte
|
|
10
|
+
<a href="https://npmcharts.com/compare/@rsbuild/plugin-svelte"><img src="https://img.shields.io/npm/dm/@rsbuild/plugin-svelte.svg?style=flat-square&colorA=564341&colorB=EDED91" alt="downloads" /></a>
|
|
11
11
|
</p>
|
|
12
12
|
|
|
13
13
|
## Documentation
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
const __rslib_import_meta_url__ = "u" < typeof document ? new (require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
|
|
3
3
|
var __webpack_require__ = {};
|
|
4
4
|
__webpack_require__.n = (module)=>{
|
|
5
5
|
var getter = module && module.__esModule ? ()=>module.default : ()=>module;
|
|
@@ -12,7 +12,7 @@ __webpack_require__.n = (module)=>{
|
|
|
12
12
|
get: definition[key]
|
|
13
13
|
});
|
|
14
14
|
}, __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.r = (exports1)=>{
|
|
15
|
-
|
|
15
|
+
"u" > typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
16
16
|
value: 'Module'
|
|
17
17
|
}), Object.defineProperty(exports1, '__esModule', {
|
|
18
18
|
value: !0
|
|
@@ -20,12 +20,12 @@ __webpack_require__.n = (module)=>{
|
|
|
20
20
|
};
|
|
21
21
|
var __webpack_exports__ = {};
|
|
22
22
|
__webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
PLUGIN_SVELTE_NAME: ()=>PLUGIN_SVELTE_NAME,
|
|
24
|
+
pluginSvelte: ()=>pluginSvelte
|
|
25
25
|
});
|
|
26
|
-
|
|
26
|
+
const external_node_fs_namespaceObject = require("node:fs"), external_node_module_namespaceObject = require("node:module"), external_node_path_namespaceObject = require("node:path");
|
|
27
27
|
var external_node_path_default = __webpack_require__.n(external_node_path_namespaceObject);
|
|
28
|
-
|
|
28
|
+
const core_namespaceObject = require("@rsbuild/core"), external_svelte_preprocess_namespaceObject = require("svelte-preprocess"), src_require = (0, external_node_module_namespaceObject.createRequire)(__rslib_import_meta_url__), PLUGIN_SVELTE_NAME = 'rsbuild:svelte', isSvelte5 = async (sveltePath)=>{
|
|
29
29
|
try {
|
|
30
30
|
let pkgPath = external_node_path_default().join(sveltePath, 'package.json'), pkgRaw = await external_node_fs_namespaceObject.promises.readFile(pkgPath, 'utf-8');
|
|
31
31
|
return JSON.parse(pkgRaw).version.startsWith('5.');
|
|
@@ -78,10 +78,10 @@ function pluginSvelte(options = {}) {
|
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
for(var
|
|
81
|
+
for(var __rspack_i in exports.PLUGIN_SVELTE_NAME = __webpack_exports__.PLUGIN_SVELTE_NAME, exports.pluginSvelte = __webpack_exports__.pluginSvelte, __webpack_exports__)-1 === [
|
|
82
82
|
"PLUGIN_SVELTE_NAME",
|
|
83
83
|
"pluginSvelte"
|
|
84
|
-
].indexOf(
|
|
84
|
+
].indexOf(__rspack_i) && (exports[__rspack_i] = __webpack_exports__[__rspack_i]);
|
|
85
85
|
Object.defineProperty(exports, '__esModule', {
|
|
86
86
|
value: !0
|
|
87
87
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -11,9 +11,9 @@ export interface SvelteLoaderOptions {
|
|
|
11
11
|
hotOptions?: {
|
|
12
12
|
/** Preserve local component state */
|
|
13
13
|
preserveLocalState?: boolean;
|
|
14
|
-
[key: string]:
|
|
14
|
+
[key: string]: unknown;
|
|
15
15
|
};
|
|
16
|
-
[key: string]:
|
|
16
|
+
[key: string]: unknown;
|
|
17
17
|
}
|
|
18
18
|
export type PluginSvelteOptions = {
|
|
19
19
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-svelte",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "Svelte plugin for Rsbuild",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"svelte-preprocess": "^6.0.3"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@rslib/core": "0.
|
|
30
|
-
"@types/node": "^
|
|
31
|
-
"svelte": "^5.
|
|
32
|
-
"typescript": "^5.9.
|
|
33
|
-
"@rsbuild/core": "1.
|
|
29
|
+
"@rslib/core": "0.19.1",
|
|
30
|
+
"@types/node": "^24.10.4",
|
|
31
|
+
"svelte": "^5.46.1",
|
|
32
|
+
"typescript": "^5.9.3",
|
|
33
|
+
"@rsbuild/core": "1.7.2",
|
|
34
34
|
"@scripts/test-helper": "1.0.1"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@rsbuild/core": "1.
|
|
37
|
+
"@rsbuild/core": "^1.0.0 || ^2.0.0-0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "rslib build",
|
|
45
|
-
"dev": "rslib build
|
|
46
|
-
"bump": "
|
|
45
|
+
"dev": "rslib build -w",
|
|
46
|
+
"bump": "pnpx bumpp --no-tag"
|
|
47
47
|
}
|
|
48
48
|
}
|