Skip to content

Commit

Permalink
fix: include config for browserify. Closes #1653
Browse files Browse the repository at this point in the history
  • Loading branch information
aearly committed Jun 23, 2019
1 parent 6739c08 commit f4dc8e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions support/sync-cjs-package.js
Expand Up @@ -3,5 +3,9 @@
var fs = require('fs');
var json = JSON.parse(fs.readFileSync(__dirname + "/../package.json"), "utf8");
json.module = 'dist/async.mjs'
// mark this as an ES6 module for browserify
json.browserify = {
transform: [["babelify", { presets: ["@babel/preset-env"] }]]
}

process.stdout.write(JSON.stringify(json, null, 2));

0 comments on commit f4dc8e4

Please sign in to comment.