File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "plugins" : [
3
+ [
4
+ " babel-plugin-inline-constants" ,
5
+ {
6
+ "modules" : [
7
+ " micromark/lib/character/codes" ,
8
+ " micromark/lib/constant/constants" ,
9
+ " micromark/lib/constant/types"
10
+ ]
11
+ }
12
+ ]
13
+ ]
14
+ }
Original file line number Diff line number Diff line change 42
42
"devDependencies" : {
43
43
"@babel/cli" : " ^7.0.0" ,
44
44
"@babel/core" : " ^7.0.0" ,
45
+ "babel-plugin-inline-constants" : " ^1.0.0" ,
45
46
"browserify" : " ^17.0.0" ,
46
47
"commonmark.json" : " ^0.29.0" ,
47
48
"dtslint" : " ^4.0.0" ,
60
61
"xo" : " ^0.34.0"
61
62
},
62
63
"scripts" : {
63
- "prepare" : " if [ -d \" micromark\" ] ; then\n cd \" micromark\" && git pull\n else\n git clone https://github.com/micromark/micromark.git\n fi" ,
64
64
"format" : " remark . -qfo && prettier . -w --loglevel warn && xo --fix" ,
65
- "generate-dist" : " babel lib/ --out-dir dist/ --quiet --retain-lines --plugins ./micromark/script/babel-transform-constants.js ; prettier dist/ --loglevel error --write" ,
65
+ "generate-dist" : " babel lib/ --out-dir dist/ --quiet --retain-lines; prettier dist/ --loglevel error --write" ,
66
66
"generate-size" : " browserify . -p tinyify -s mdast-util-from-markdown -o mdast-util-from-markdown.min.js; gzip-size mdast-util-from-markdown.min.js" ,
67
67
"generate" : " npm run generate-dist && npm run generate-size" ,
68
68
"test-api" : " node test" ,
You can’t perform that action at this time.
0 commit comments