mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-29 09:35:22 +00:00
14 lines
349 B
JavaScript
14 lines
349 B
JavaScript
|
#!/usr/bin/env node
|
||
|
|
||
|
var fs = require("fs");
|
||
|
var browserify = require("browserify");
|
||
|
|
||
|
browserify("src/babel-worker.js")
|
||
|
.transform("babelify", {
|
||
|
presets: [ [ "@babel/preset-env", { targets: "ie >= 11" } ] ],
|
||
|
global: true,
|
||
|
ignore: [ "../../node_modules/core-js" ]
|
||
|
})
|
||
|
.bundle()
|
||
|
.pipe(fs.createWriteStream("dist/babel-worker.js"));
|