File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 ],
1212 "repository" : " markdown-it/markdown-it" ,
1313 "license" : " MIT" ,
14- "main" : " dist/markdown-it .cjs.js" ,
14+ "main" : " dist/index .cjs.js" ,
1515 "module" : " index.mjs" ,
1616 "exports" : {
1717 "." : {
1818 "import" : " ./index.mjs" ,
19- "require" : " ./dist/markdown-it .cjs.js"
19+ "require" : " ./dist/index .cjs.js"
2020 },
2121 "./*" : {
2222 "require" : " ./*" ,
5555 "devDependencies" : {
5656 "@rollup/plugin-babel" : " ^6.0.4" ,
5757 "@rollup/plugin-commonjs" : " ^25.0.7" ,
58- "@rollup/plugin-json" : " ^6.0.1" ,
5958 "@rollup/plugin-node-resolve" : " ^15.2.3" ,
6059 "@rollup/plugin-terser" : " ^0.4.4" ,
6160 "ansi" : " ^0.3.0" ,
Original file line number Diff line number Diff line change 11import nodeResolve from '@rollup/plugin-node-resolve'
22import commonjs from '@rollup/plugin-commonjs'
3- import json from '@rollup/plugin-json'
43import terser from '@rollup/plugin-terser'
54
65const plugins = [
76 nodeResolve ( { preferBuiltins : true } ) ,
87 commonjs ( ) ,
9- json ( { namedExports : false } ) ,
108 // Here terser is used only to force ascii output
119 terser ( {
1210 mangle : false ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const config_umd_full = {
99 input : 'index.mjs' ,
1010 output : [
1111 {
12- file : ' dist/markdown-it.js' ,
12+ file : ` dist/${ pkg . name } .js` ,
1313 format : 'umd' ,
1414 name : 'markdownit' ,
1515 plugins : [
@@ -22,7 +22,7 @@ const config_umd_full = {
2222 ]
2323 } ,
2424 {
25- file : ' dist/markdown-it. min.js' ,
25+ file : ` dist/${ pkg . name } . min.js` ,
2626 format : 'umd' ,
2727 name : 'markdownit' ,
2828 plugins : [
@@ -46,7 +46,7 @@ const config_umd_full = {
4646const config_cjs_no_deps = {
4747 input : 'index.mjs' ,
4848 output : {
49- file : 'dist/markdown-it .cjs.js' ,
49+ file : 'dist/index .cjs.js' ,
5050 format : 'cjs'
5151 } ,
5252 external : Object . keys ( pkg . dependencies ) ,
You can’t perform that action at this time.
0 commit comments