webextension-polyfill/test/fixtures/browserify-tape.js

13 lines
276 B
JavaScript

const browserify = require("browserify");
const b = browserify();
b.add("./test/fixtures/tape-standalone.js");
b.transform("global-replaceify", {
global: true,
replacements: {
setImmediate: "require('timers').setImmediate",
},
});
b.bundle().pipe(process.stdout);