@rasenganjs/mdx 1.0.4 → 1.0.5

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.
@@ -1,2 +1,20 @@
1
- import plugin from "./plugin.js";
1
+ declare const plugin: () => (Promise<{
2
+ name: string;
3
+ enforce: string;
4
+ config(config: unknown, env: any): void;
5
+ configResolved(resolvedConfig: unknown): void;
6
+ transform(code: string, id: string): Promise<{
7
+ code: string;
8
+ map: import("rollup").SourceMapInput;
9
+ }>;
10
+ }> | {
11
+ name: string;
12
+ config: () => {
13
+ define: {
14
+ process: NodeJS.Process;
15
+ };
16
+ };
17
+ enforce: string;
18
+ apply: string;
19
+ })[];
2
20
  export { plugin };
@@ -1,3 +1,5 @@
1
- import plugin from "./plugin.js";
1
+ import mdxPlugin from "./plugin.js";
2
+ import polyfill from "./polyfill.js";
3
+ const plugin = () => [mdxPlugin(), polyfill()];
2
4
  export { plugin };
3
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;AAE/C,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ export default function polyfill(): {
2
+ name: string;
3
+ config: () => {
4
+ define: {
5
+ process: NodeJS.Process;
6
+ };
7
+ };
8
+ enforce: string;
9
+ apply: string;
10
+ };
@@ -0,0 +1,15 @@
1
+ export default function polyfill() {
2
+ return {
3
+ name: "vite-plugin-rasengan-mdx-polyfill",
4
+ config: () => {
5
+ return {
6
+ define: {
7
+ "process": process,
8
+ },
9
+ };
10
+ },
11
+ enforce: "pre",
12
+ apply: "build",
13
+ };
14
+ }
15
+ //# sourceMappingURL=polyfill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polyfill.js","sourceRoot":"","sources":["../../src/utils/polyfill.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,QAAQ;IAC/B,OAAO;QACN,IAAI,EAAE,mCAAmC;QAEzC,MAAM,EAAE,GAAG,EAAE;YACZ,OAAO;gBACN,MAAM,EAAE;oBACP,SAAS,EAAE,OAAO;iBAClB;aACD,CAAC;QACH,CAAC;QAED,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,OAAO;KACd,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rasenganjs/mdx",
3
3
  "private": false,
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "description": "RasenganJS plugin for MDX support",
6
6
  "type": "module",
7
7
  "main": "lib/index.js",