markdown-it-any-block 3.2.3-beta8 → 3.2.3-beta9
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/README.md +2 -2
- package/dist/{index.cjs → mdit-any-block.cjs} +1 -1
- package/dist/{index.js → mdit-any-block.js} +1 -1
- package/package.json +1 -1
- package/rollup.config.js +5 -5
- package/rollup.config.ts +2 -2
- package/tsup.config.ts +6 -2
- /package/dist/{index.cjs.map → mdit-any-block.cjs.map} +0 -0
- /package/dist/{index.d.cts → mdit-any-block.d.cts} +0 -0
- /package/dist/{index.d.ts → mdit-any-block.d.ts} +0 -0
- /package/dist/{index.js.map → mdit-any-block.js.map} +0 -0
package/README.md
CHANGED
|
@@ -317,7 +317,7 @@ global.Storage = dom.window.Storage;
|
|
|
317
317
|
可以排除依赖,压缩打包后的大小。然后别人使用你的包时,会再自动去使用对应的依赖
|
|
318
318
|
|
|
319
319
|
```ts
|
|
320
|
-
external: ['
|
|
320
|
+
external: ['markdown-it', 'jsdom'], // 手动指定
|
|
321
321
|
|
|
322
322
|
// 或
|
|
323
323
|
|
|
@@ -330,7 +330,7 @@ external: Object.keys(pkg.dependencies || {}), // 排除所有依赖
|
|
|
330
330
|
|
|
331
331
|
```typescript
|
|
332
332
|
// 新版
|
|
333
|
-
// import { ab_mdit } from "./plugins/ABConvertManager/MarkdownIt/dist/index.js" // 编译版tsup (ab环境编译成功,vp环境编译失败,使用未测试)
|
|
333
|
+
// import { ab_mdit } from "./plugins/ABConvertManager/MarkdownIt/dist/index.js" // 编译版tsup (ab环境编译成功,vp环境编译失败,使用未测试)error Error [ERR_MODULE_NOT_FOUND]: Cannot find module
|
|
334
334
|
// import { ab_mdit } from "./plugins/ABConvertManager/MarkdownIt/lib/index.js" // 编译版rollup (编译成功,使用失败,打包缺失了很多东西,体积很小)
|
|
335
335
|
// import { ab_mdit } from "./plugins/ABConvertManager/MarkdownIt/dist/mdit-any-block.js"// 编译版vite (成功)
|
|
336
336
|
// import { ab_mdit, jsdom_init_ } from "./plugins/ABConvertManager/MarkdownIt/index.js" // 源码版 (成功)
|
|
@@ -299777,4 +299777,4 @@ mermaid/dist/mermaid-b5860b54.js:
|
|
|
299777
299777
|
markmap-common/dist/index.mjs:
|
|
299778
299778
|
(*! @gera2ld/jsx-dom v2.2.2 | ISC License *)
|
|
299779
299779
|
*/
|
|
299780
|
-
//# sourceMappingURL=
|
|
299780
|
+
//# sourceMappingURL=mdit-any-block.cjs.map
|
|
@@ -299773,4 +299773,4 @@ mermaid/dist/mermaid-b5860b54.js:
|
|
|
299773
299773
|
markmap-common/dist/index.mjs:
|
|
299774
299774
|
(*! @gera2ld/jsx-dom v2.2.2 | ISC License *)
|
|
299775
299775
|
*/
|
|
299776
|
-
//# sourceMappingURL=
|
|
299776
|
+
//# sourceMappingURL=mdit-any-block.js.map
|
package/package.json
CHANGED
package/rollup.config.js
CHANGED
|
@@ -17,15 +17,15 @@ const config_umd_full = {
|
|
|
17
17
|
input: 'index.ts',
|
|
18
18
|
output: [
|
|
19
19
|
{
|
|
20
|
-
file: `dist
|
|
20
|
+
file: `dist/mdit-any-block.js`,
|
|
21
21
|
format: 'umd',
|
|
22
|
-
name:
|
|
22
|
+
name: 'mdit-any-block',
|
|
23
23
|
plugins: []
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
file: `dist
|
|
26
|
+
file: `dist/mdit-any-block.min.js`,
|
|
27
27
|
format: 'umd',
|
|
28
|
-
name:
|
|
28
|
+
name: 'mdit-any-block',
|
|
29
29
|
plugins: []
|
|
30
30
|
}
|
|
31
31
|
],
|
|
@@ -38,7 +38,7 @@ const config_cjs_no_deps = {
|
|
|
38
38
|
file: 'dist/index.cjs.js',
|
|
39
39
|
format: 'cjs'
|
|
40
40
|
},
|
|
41
|
-
external: ['
|
|
41
|
+
external: ['markdown-it', 'jsdom'], // Object.keys(pkg.dependencies || {}),
|
|
42
42
|
plugins: []
|
|
43
43
|
}
|
|
44
44
|
|
package/rollup.config.ts
CHANGED
|
@@ -38,7 +38,7 @@ export const rollupTypescript = (
|
|
|
38
38
|
input: `./index.ts`,
|
|
39
39
|
output: [
|
|
40
40
|
{
|
|
41
|
-
file: `./
|
|
41
|
+
file: `./dist/mdit-any-block.js`,
|
|
42
42
|
format: "esm",
|
|
43
43
|
sourcemap: true,
|
|
44
44
|
exports: "named",
|
|
@@ -75,7 +75,7 @@ export const rollupTypescript = (
|
|
|
75
75
|
? [
|
|
76
76
|
defineConfig({
|
|
77
77
|
input: `./index.ts`,
|
|
78
|
-
output: [{ file: `./
|
|
78
|
+
output: [{ file: `./dist/mdit-any-block.d.ts`, format: "esm" }],
|
|
79
79
|
plugins: [
|
|
80
80
|
dts({
|
|
81
81
|
compilerOptions: {
|
package/tsup.config.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { defineConfig } from "tsup";
|
|
2
2
|
|
|
3
3
|
export default defineConfig({
|
|
4
|
-
entry:
|
|
4
|
+
entry: {
|
|
5
|
+
// key 输出文件名 (不带扩展名),value 入口文件路径
|
|
6
|
+
"mdit-any-block": "./index.ts"
|
|
7
|
+
},
|
|
8
|
+
outDir: 'dist',
|
|
5
9
|
format: ["cjs", "esm"], // Build for commonJS and ESmodules
|
|
6
10
|
dts: true, // Generate declaration file (.d.ts)
|
|
7
11
|
splitting: false,
|
|
8
12
|
sourcemap: true,
|
|
9
13
|
clean: true,
|
|
10
14
|
external: [
|
|
11
|
-
'
|
|
15
|
+
'markdown-it', 'jsdom'
|
|
12
16
|
]
|
|
13
17
|
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|