ember-browserify
ember-browserify copied to clipboard
Transforms don't load correctly when running `npm link`ed
We look up transform modules relative to ember-browserify, not relative to the user's app. This is only really an issue when running npm linked.
I'm actually having an issue getting transforms to load at all. Specifically, browserify-shim. The transform function is only being passed the core_object-input_staging-6DY6kPE9.tmp/browserify_stubs.js file, and the stubbed define('npm:foo', function(){ return { 'default': require('foo')};}) code so it can't find (and replace) the require's inside my foo module.
False alarm, I didn't realize browserify transforms only work one level deep.
@ef4 still an issue?
Yes. You can reproduce by configuring any babel transform and trying to build your app while ember-browserify is npm linked.
related: https://github.com/ef4/ember-browserify/issues/16