@rsbuild/plugin-svelte 0.7.5 → 0.7.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/dist/index.cjs CHANGED
@@ -30,15 +30,17 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var src_exports = {};
32
32
  __export(src_exports, {
33
+ PLUGIN_SVELTE_NAME: () => PLUGIN_SVELTE_NAME,
33
34
  pluginSvelte: () => pluginSvelte
34
35
  });
35
36
  module.exports = __toCommonJS(src_exports);
36
37
  var import_node_path = __toESM(require("path"));
37
38
  var import_core = require("@rsbuild/core");
38
39
  var import_shared = require("@rsbuild/shared");
40
+ var PLUGIN_SVELTE_NAME = "rsbuild:svelte";
39
41
  function pluginSvelte(options = {}) {
40
42
  return {
41
- name: "rsbuild:svelte",
43
+ name: PLUGIN_SVELTE_NAME,
42
44
  setup(api) {
43
45
  let sveltePath = "";
44
46
  try {
@@ -88,5 +90,6 @@ function pluginSvelte(options = {}) {
88
90
  }
89
91
  // Annotate the CommonJS export names for ESM import in node:
90
92
  0 && (module.exports = {
93
+ PLUGIN_SVELTE_NAME,
91
94
  pluginSvelte
92
95
  });
package/dist/index.d.ts CHANGED
@@ -28,6 +28,7 @@ type PluginSvelteOptions = {
28
28
  */
29
29
  preprocessOptions?: AutoPreprocessOptions;
30
30
  };
31
+ declare const PLUGIN_SVELTE_NAME = "rsbuild:svelte";
31
32
  declare function pluginSvelte(options?: PluginSvelteOptions): RsbuildPlugin;
32
33
 
33
- export { type PluginSvelteOptions, type SvelteLoaderOptions, pluginSvelte };
34
+ export { PLUGIN_SVELTE_NAME, type PluginSvelteOptions, type SvelteLoaderOptions, pluginSvelte };
package/dist/index.js CHANGED
@@ -17,9 +17,10 @@ import path from "path";
17
17
  import path2 from "path";
18
18
  import { logger } from "@rsbuild/core";
19
19
  import { deepmerge } from "@rsbuild/shared";
20
+ var PLUGIN_SVELTE_NAME = "rsbuild:svelte";
20
21
  function pluginSvelte(options = {}) {
21
22
  return {
22
- name: "rsbuild:svelte",
23
+ name: PLUGIN_SVELTE_NAME,
23
24
  setup(api) {
24
25
  let sveltePath = "";
25
26
  try {
@@ -68,5 +69,6 @@ function pluginSvelte(options = {}) {
68
69
  };
69
70
  }
70
71
  export {
72
+ PLUGIN_SVELTE_NAME,
71
73
  pluginSvelte
72
74
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-svelte",
3
- "version": "0.7.5",
3
+ "version": "0.7.7",
4
4
  "description": "Svelte plugin for Rsbuild",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,19 +22,19 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "svelte-loader": "3.2.0",
25
+ "svelte-loader": "3.2.3",
26
26
  "svelte-preprocess": "^5.1.4",
27
- "@rsbuild/shared": "0.7.5"
27
+ "@rsbuild/shared": "0.7.7"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "18.x",
31
- "svelte": "^4.2.17",
31
+ "svelte": "^4.2.18",
32
32
  "typescript": "^5.4.2",
33
- "@rsbuild/core": "0.7.5",
34
- "@scripts/test-helper": "0.7.5"
33
+ "@rsbuild/core": "0.7.7",
34
+ "@scripts/test-helper": "0.7.7"
35
35
  },
36
36
  "peerDependencies": {
37
- "@rsbuild/core": "^0.7.5"
37
+ "@rsbuild/core": "^0.7.7"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public",