@rsbuild/plugin-toml 0.7.6 → 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,11 +30,13 @@ 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_TOML_NAME: () => PLUGIN_TOML_NAME,
33
34
  pluginToml: () => pluginToml
34
35
  });
35
36
  module.exports = __toCommonJS(src_exports);
37
+ var PLUGIN_TOML_NAME = "rsbuild:toml";
36
38
  var pluginToml = () => ({
37
- name: "rsbuild:toml",
39
+ name: PLUGIN_TOML_NAME,
38
40
  async setup(api) {
39
41
  const { parse } = await import("toml");
40
42
  api.transform({ test: /\.toml$/ }, ({ code }) => {
@@ -45,5 +47,6 @@ var pluginToml = () => ({
45
47
  });
46
48
  // Annotate the CommonJS export names for ESM import in node:
47
49
  0 && (module.exports = {
50
+ PLUGIN_TOML_NAME,
48
51
  pluginToml
49
52
  });
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { RsbuildPlugin } from '@rsbuild/core';
2
2
 
3
+ declare const PLUGIN_TOML_NAME = "rsbuild:toml";
3
4
  declare const pluginToml: () => RsbuildPlugin;
4
5
 
5
- export { pluginToml };
6
+ export { PLUGIN_TOML_NAME, pluginToml };
package/dist/index.js CHANGED
@@ -7,8 +7,9 @@ import { fileURLToPath } from "url";
7
7
  import path from "path";
8
8
 
9
9
  // src/index.ts
10
+ var PLUGIN_TOML_NAME = "rsbuild:toml";
10
11
  var pluginToml = () => ({
11
- name: "rsbuild:toml",
12
+ name: PLUGIN_TOML_NAME,
12
13
  async setup(api) {
13
14
  const { parse } = await import("toml");
14
15
  api.transform({ test: /\.toml$/ }, ({ code }) => {
@@ -18,5 +19,6 @@ var pluginToml = () => ({
18
19
  }
19
20
  });
20
21
  export {
22
+ PLUGIN_TOML_NAME,
21
23
  pluginToml
22
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-toml",
3
- "version": "0.7.6",
3
+ "version": "0.7.7",
4
4
  "description": "TOML plugin for Rsbuild",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -27,10 +27,10 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "typescript": "^5.4.2",
30
- "@rsbuild/core": "0.7.6"
30
+ "@rsbuild/core": "0.7.7"
31
31
  },
32
32
  "peerDependencies": {
33
- "@rsbuild/core": "^0.7.6"
33
+ "@rsbuild/core": "^0.7.7"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public",