From 0de0d780ff36a7dbbd157e41066fb8762a775c29 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Thu, 28 Sep 2023 16:30:03 +0800 Subject: [PATCH] released v3.0.0 --- packages/markdown-to-html/package.json | 2 +- packages/markdown-to-html/rollup.config.js | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/packages/markdown-to-html/package.json b/packages/markdown-to-html/package.json index a882bbd..d816f1b 100644 --- a/packages/markdown-to-html/package.json +++ b/packages/markdown-to-html/package.json @@ -1,6 +1,6 @@ { "name": "@wcj/markdown-to-html", - "version": "2.2.1", + "version": "3.0.0", "description": "Converts markdown text to HTML.", "license": "MIT", "author": "kenny wang (https://github.com/jaywcjlove)", diff --git a/packages/markdown-to-html/rollup.config.js b/packages/markdown-to-html/rollup.config.js index df1b346..cba18b2 100644 --- a/packages/markdown-to-html/rollup.config.js +++ b/packages/markdown-to-html/rollup.config.js @@ -1,3 +1,4 @@ +import path from 'path'; import typescript from '@rollup/plugin-typescript'; import commonjs from '@rollup/plugin-commonjs'; import { nodeResolve } from '@rollup/plugin-node-resolve'; @@ -6,9 +7,22 @@ import json from '@rollup/plugin-json'; import { multibanner, onebanner } from 'bannerjs'; import pkg from './package.json' assert { type: 'json' }; +// const onwarn = (warning, rollupWarn) => { +// // Silence circular dependency warning for moment package +// // if ( +// // warning.code === 'CIRCULAR_DEPENDENCY' +// // && !warning.ids.indexOf(path.normalize('node_modules/hast-util-select/lib/')) +// // ) { +// // return +// // } + +// console.warn(`Circular dependency: ${warning.message}`); +// } + export default [ { input: 'src/index.ts', + // onwarn, output: [ { file: pkg.unpkg, @@ -36,6 +50,7 @@ export default [ }, { input: 'src/index.ts', + // onwarn, output: [ { file: pkg.unpkg.replace(/.js$/, '.min.js'),