jlouns / gulp-requirejs-optimize

Wrapper for the requirejs optimizer for use in gulp
MIT License
62 stars 9 forks source link

Named module not found #30

Open thany opened 7 years ago

thany commented 7 years ago

When I include a module that is defined like so:

define("foo", [ ], function() {
  return {
    // ...
  };
});

And I clude that module early in my application, it works fine. When I then also include the module by name foo rather than path path/to/foo, it doesn't work.

Error: ENOENT: no such file or directory

It works fine when I don't build my project and let RequireJS do its thing in the browser.