Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#14689 closed feature (wontfix)

provide registerModulePath for the AMD loader

Reported by: vvoovv Owned by: Rawld Gill
Priority: undecided Milestone: tbd
Component: Loader Version: 1.7.1
Keywords: Cc: ben hockey
Blocked By: Blocking:


registerModulePath is defined in _base/loader.js that is to be deprecated.

It doesn't make sense to load obsolete module and use only 3 lines of its code:

var paths = {};
paths[moduleName.replace(/\./g, "/")] = prefix;

I'd suggest to call it via require:

require.registerModulePath(/*String*/moduleName, /*String*/prefix);

Change History (3)

comment:1 Changed 10 years ago by ben hockey

Cc: ben hockey added

comment:2 Changed 10 years ago by Rawld Gill

Resolution: wontfix
Status: newclosed

registerModulePaths is deprecated too. If you want to use the legacy loader and it's api, then you'll have to load that module.

comment:3 Changed 10 years ago by Maastermedia

Thanks, rcgill. I will soon update it in the refguide:

Note: See TracTickets for help on using tickets.