@web/storybook-builder 0.2.2 → 0.2.3
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/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup-plugin-mdx.d.ts","sourceRoot":"","sources":["../src/rollup-plugin-mdx.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rollup-plugin-mdx.d.ts","sourceRoot":"","sources":["../src/rollup-plugin-mdx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAKhD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAsDxD"}
|
|
@@ -1,10 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
5
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
29
|
exports.rollupPluginMdx = void 0;
|
|
7
|
-
const mdx_1 = require("@mdx-js/mdx");
|
|
8
30
|
const promises_1 = require("node:fs/promises");
|
|
9
31
|
const node_path_1 = require("node:path");
|
|
10
32
|
const rehype_external_links_1 = __importDefault(require("rehype-external-links"));
|
|
@@ -39,7 +61,8 @@ function rollupPluginMdx(options) {
|
|
|
39
61
|
rehype_slug_1.default,
|
|
40
62
|
rehype_external_links_1.default,
|
|
41
63
|
] }), jsxOptions }));
|
|
42
|
-
const
|
|
64
|
+
const { compile } = await Promise.resolve().then(() => __importStar(require('@mdx-js/mdx'))); // for CJS compatibility
|
|
65
|
+
const mdxResult = await compile(mdxCode, mdxLoaderOptions.mdxCompileOptions);
|
|
43
66
|
return mdxResult.toString();
|
|
44
67
|
},
|
|
45
68
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup-plugin-mdx.js","sourceRoot":"","sources":["../src/rollup-plugin-mdx.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rollup-plugin-mdx.js","sourceRoot":"","sources":["../src/rollup-plugin-mdx.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+CAA4C;AAC5C,yCAA+C;AAC/C,kFAAwD;AACxD,8DAAqC;AAGrC,SAAgB,eAAe,CAAC,OAAgB;IAC9C,IAAI,gBAAqC,CAAC;IAC1C,IAAI,UAA+B,CAAC;IAEpC,OAAO;QACL,IAAI,EAAE,mBAAmB;QAEzB,KAAK,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