ibm-js / ecma402

ECMA-402 JavaScript Internationalization API "shim"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Specifying require dependencies

clmath opened this issue · comments

Currently the dependency on require in locales.js and preload.js are not correct.
Indeed, require is a special keyword as module and export.

The correct way to use require inside a module is:

define(["require"], function (require) {
    require([....]);
});