fis3-hook-node_modules
fis3-hook-node_modules copied to clipboard
部分库匿名定义(define)导致加载出错问题
# https://github.com/goldfire/howler.js/blob/master/dist/howler.js#L2163
// Add support for AMD (Asynchronous Module Definition) libraries such as require.js.
if (typeof define === 'function' && define.amd) {
define([], function() {
return {
Howler: Howler,
Howl: Howl
};
});
}
像howler这类define不加name会导致后续require加载其他插件时变成加载howler这类情况如何解决?
目前使用的是amd方式及requirejs来处理加载。