@rsbuild/plugin-svelte 0.7.0-beta.0 → 0.7.0-beta.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/dist/index.d.ts +10 -8
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { RsbuildPlugin } from '@rsbuild/core';
|
|
2
|
+
import { AutoPreprocessOptions } from 'svelte-preprocess/dist/types';
|
|
3
|
+
export { AutoPreprocessOptions, Transformer } from 'svelte-preprocess/dist/types';
|
|
4
|
+
import { CompileOptions } from 'svelte/compiler';
|
|
5
|
+
|
|
6
|
+
interface SvelteLoaderOptions {
|
|
7
7
|
compilerOptions?: Omit<CompileOptions, 'filename' | 'format' | 'generate'>;
|
|
8
8
|
/**
|
|
9
9
|
* Extra HMR options, the defaults are completely fine\
|
|
@@ -16,7 +16,7 @@ export interface SvelteLoaderOptions {
|
|
|
16
16
|
};
|
|
17
17
|
[key: string]: any;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
type PluginSvelteOptions = {
|
|
20
20
|
/**
|
|
21
21
|
* The options of svelte-loader
|
|
22
22
|
* @see https://github.com/sveltejs/svelte-loader
|
|
@@ -28,4 +28,6 @@ export type PluginSvelteOptions = {
|
|
|
28
28
|
*/
|
|
29
29
|
preprocessOptions?: AutoPreprocessOptions;
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
declare function pluginSvelte(options?: PluginSvelteOptions): RsbuildPlugin;
|
|
32
|
+
|
|
33
|
+
export { type PluginSvelteOptions, type SvelteLoaderOptions, pluginSvelte };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-svelte",
|
|
3
|
-
"version": "0.7.0-beta.
|
|
3
|
+
"version": "0.7.0-beta.2",
|
|
4
4
|
"description": "Svelte plugin for Rsbuild",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"svelte-loader": "3.2.0",
|
|
26
26
|
"svelte-preprocess": "^5.1.4",
|
|
27
|
-
"@rsbuild/shared": "0.7.0-beta.
|
|
27
|
+
"@rsbuild/shared": "0.7.0-beta.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "18.x",
|
|
31
31
|
"svelte": "^4.2.16",
|
|
32
32
|
"typescript": "^5.4.2",
|
|
33
|
-
"@rsbuild/core": "0.7.0-beta.
|
|
34
|
-
"@scripts/test-helper": "0.7.0-beta.
|
|
33
|
+
"@rsbuild/core": "0.7.0-beta.2",
|
|
34
|
+
"@scripts/test-helper": "0.7.0-beta.2"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@rsbuild/core": "^0.7.0-beta.
|
|
37
|
+
"@rsbuild/core": "^0.7.0-beta.2"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public",
|