@rsbuild/plugin-toml 0.7.6 → 0.7.8
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 +4 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -2
- package/package.json +3 -3
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:
|
|
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
package/dist/index.js
CHANGED
|
@@ -2,13 +2,14 @@ import { createRequire } from 'module';
|
|
|
2
2
|
var require = createRequire(import.meta['url']);
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.pnpm/@modern-js+module-tools@2.52.0_eslint@9.
|
|
5
|
+
// ../../node_modules/.pnpm/@modern-js+module-tools@2.52.0_eslint@9.5.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js
|
|
6
6
|
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:
|
|
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.
|
|
3
|
+
"version": "0.7.8",
|
|
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.
|
|
30
|
+
"@rsbuild/core": "0.7.8"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@rsbuild/core": "^0.7.
|
|
33
|
+
"@rsbuild/core": "^0.7.8"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public",
|