In the require.js environment project, mui.JS loading failed, how to defined mui the module?

if you want to add mui.js, to require.js, how can you defined mui.js? Specific steps are required

Dec.14,2021

has not written requireJS for a long time. Before defining a module, configure the address and dependency of the corresponding module in the entry js file, and the rest is normal according to the syntax. If the module does not support amd syntax, it seems that it can be implemented through shim attribute configuration


configure export settings with shim

shim: {
    director: {
        exports: 'Router'
    }
}
      
Menu