gulp-requirejs-optimize icon indicating copy to clipboard operation
gulp-requirejs-optimize copied to clipboard

Named module not found

Open thany opened this issue 8 years ago • 0 comments

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.

thany avatar May 10 '17 09:05 thany