suggestion for including the traceur runtime
Closed this issue · 1 comments
iwillig commented
I am attempting to include the traceur runtime and build my module in standalone
mode.
var browserify = require('browserify'),
fs = require('fs'),
es6ify = require('es6ify');
browserify()
.add(es6ify.runtime)
.transform(es6ify)
.require(require.resolve('./src/index'), { entry: true })
.bundle({ debug: true, standalone: 'Project'})
.on('error', function (err) { console.log(err); })
.pipe(fs.createWriteStream('project.debug.js'));
When I do this I get an browserify error that I can only have on entry point in standalone
mode.
It seems like the combination of the browserify.add
and browserify.require
does not play well together.
Is there a correct of doing of including the runtime, source maps and building my module in standalone mode?
Thanks
iwillig commented
For future reference, this issue seems to be kind of solved by upgrading to the latest version of browserify