Skip to content

Commit

Permalink
Merge 141a300 into 9ceaaa7
Browse files Browse the repository at this point in the history
  • Loading branch information
lpellegr committed Nov 7, 2019
2 parents 9ceaaa7 + 141a300 commit e1b5ba8
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintignore
Expand Up @@ -4,3 +4,4 @@ dist/
node_modules
support/demo_template/sample.js
benchmark/extra/
rollup.config.js
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,3 +4,4 @@ coverage/
demo/
apidoc/
*.log
*.mjs
11 changes: 10 additions & 1 deletion package.json
Expand Up @@ -12,14 +12,19 @@
"repository": "markdown-it/markdown-it",
"license": "MIT",
"main": "index.js",
"module": "index.mjs",
"bin": {
"markdown-it": "bin/markdown-it.js"
},
"scripts": {
"test": "make test"
"build": "rollup -c",
"prepare": "npm run build",
"test": "make test",
"watch": "rollup -c -w"
},
"files": [
"index.js",
"index.mjs",
"bin/",
"lib/",
"dist/"
Expand Down Expand Up @@ -56,6 +61,10 @@
"mocha": "^6.1.4",
"ndoc": "^5.0.0",
"pug-cli": "^1.0.0-alpha6",
"rollup": "^1.26.3",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"stylus": "^0.54.5",
"supertest": "^4.0.2",
"terser": "^4.1.2"
Expand Down
18 changes: 18 additions & 0 deletions rollup.config.js
@@ -0,0 +1,18 @@
import commonjs from 'rollup-plugin-commonjs';
import nodeResolve from 'rollup-plugin-node-resolve';
import json from 'rollup-plugin-json';

export default {
input: 'index.js',
output: {
file: 'index.mjs',
format: 'esm'
},
plugins: [
json(),
nodeResolve({
preferBuiltins: false
}),
commonjs()
]
};

0 comments on commit e1b5ba8

Please sign in to comment.