The rough underlying implementation is more or less done. Right now we're deciding betwen two forms, require('a.png') vs. requireStatic('a.png').
- Pros: more familiar. One single
requirefor assets too. - Cons: Doesn't follow the CommonJS specs. Overloads
require.
- Pros: isn't tied to CommonJS.
- Cons: another thing to learn.
I agree with @syranide, this should definitely not use
require.