ember-browserify icon indicating copy to clipboard operation
ember-browserify copied to clipboard

Transforms don't load correctly when running `npm link`ed

Open ef4 opened this issue 10 years ago • 5 comments

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.

ef4 avatar Feb 09 '15 19:02 ef4

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.

danny-andrews avatar Mar 25 '16 05:03 danny-andrews

False alarm, I didn't realize browserify transforms only work one level deep.

danny-andrews avatar Mar 25 '16 05:03 danny-andrews

@ef4 still an issue?

stefanpenner avatar Apr 27 '16 04:04 stefanpenner

Yes. You can reproduce by configuring any babel transform and trying to build your app while ember-browserify is npm linked.

ef4 avatar Apr 27 '16 05:04 ef4

related: https://github.com/ef4/ember-browserify/issues/16

stefanpenner avatar May 04 '16 17:05 stefanpenner