ibm-js / requirejs-dplugins

AMD plugins for RequireJS
http://ibm-js.github.io/requirejs-dplugins/
Other
6 stars 9 forks source link

During the build, wrong normalization of nls bundles starting by ../ outside of a package. #13

Closed clmath closed 9 years ago

clmath commented 9 years ago

This issue appears during the build, when a relative i18n bundle with a path starting with ../ is required from a module outside a package (like main).

In this case requirejs cannot normalize the path so the i18n build is called with the leading ../. Since the require in i18n/build/ is a locale require, this ../ is normalized against requirejs-dplugins/i18n instead of baseUrl.

The fix is to switch to the global require in i18n/build