Skip to content

Commit

Permalink
released v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 28, 2023
1 parent 2c32bb4 commit 0de0d78
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/markdown-to-html/package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> (https://github.com/jaywcjlove)",
Expand Down
15 changes: 15 additions & 0 deletions packages/markdown-to-html/rollup.config.js
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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,
Expand Down Expand Up @@ -36,6 +50,7 @@ export default [
},
{
input: 'src/index.ts',
// onwarn,
output: [
{
file: pkg.unpkg.replace(/.js$/, '.min.js'),
Expand Down

0 comments on commit 0de0d78

Please sign in to comment.