Is there a way to use ES6 and modules with PhantomJS?
I can transpile each file from ES6 to ES5 using Babel, but it\'s awkward to maintain parallel trees (one in ES6
Browserify's --exclude option does what I need.
--exclude
browserify --exclude webpage -t babelify script.js --outfile compiled.js phantomjs compiled.js
That excludes webpage from the dependency tree but leaves the import in place.
webpage