Closed dominicbarnes closed 10 years ago
kind of the same with browserify. it'll work as long as people don't do crazy stuff with require()
like require(variable + '-component')
.
it'll look through all the require calls and replace them if it finds a suitable file/component as specified in the component.json
. if it doesn't get replaced, it'll just show this debug message and not change anything. these debug messages aren't an issue unless your build actually stops working.
the purpose is to register modules with canonical names like segmentio-validator@0.0.9
instead of all those aliases the builder did before.
not sure why we're getting component-builder:scripts could not resolve "stop" from "yields~stop@0.0.2"
though. i don't see a require('stop')
anywhere o.O https://github.com/yields/stop/blob/master/index.js
debug
automatically assigned component-builder:scripts
to be red, so I mentally was treating it like an error lol. Never mind then, I'll keep in mind that I need to be non-tricky with require
...but I can't always promise that, so as I get further along in getting things to build I'll keep my eyes peeled.
it should be less necessary now https://github.com/component/guide/blob/master/creating-components/best-practices.md#publishing-to-npm :D
In my app, I'm seeing a lot of these kinds of errors:
I didn't realize component was going to start analyzing files for
require
calls, and it seems like this can break if people do "unexpected" things withrequire
. (liketry/catch
to support both node and component for example)What exactly is "resolution" phase doing? (I'd like to understand better so I can work with it)