Skip to content

Commit 8213a17

Browse files
committed
Add support for bundling esnext
1 parent 666c6a0 commit 8213a17

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
"zwitch": "^1.0.0"
3030
},
3131
"devDependencies": {
32+
"babel-core": "^6.26.3",
33+
"babel-preset-env": "^1.7.0",
34+
"babelify": "^8.0.0",
3235
"browserify": "^16.0.0",
3336
"esmangle": "^1.0.0",
3437
"hastscript": "^3.0.1",
@@ -45,7 +48,7 @@
4548
},
4649
"scripts": {
4750
"build-md": "remark . -qfo",
48-
"build-bundle": "browserify index.js --bare -s hastUtilRaw > hast-util-raw.js",
51+
"build-bundle": "browserify index.js -o hast-util-raw.js --bare -s hastUtilRaw -g [ babelify --presets [ \"babel-preset-env\" ] ]",
4952
"build-mangle": "esmangle hast-util-raw.js > hast-util-raw.min.js",
5053
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
5154
"lint": "xo",

0 commit comments

Comments
 (0)