vtfuture / RequireJSDotNet

RequireJS for ASP.NET MVC
http://requirejsnet.veritech.io
MIT License
94 stars 46 forks source link

Added dir aliases support for requirejs config. #59

Closed bowczarek closed 8 years ago

bowczarek commented 9 years ago

According to requirejs specification we are allowed to define dir alias in 'paths' section. However, the compressor compares only the full dependency entry name (module path) with the entries defined in 'paths' section.

For example if we would have a following requirejs module: define(['lib/myLibrary'], function() { });

then compressor would look for whole 'lib/myLibrary' inside of the requirejs config paths section. Instead it should look up each part of the module path individually ('lib', 'myLibrary') when generating bundle.