Open
Description
Describe the bug
To Reproduce
1. introduce Sortable.min.js via AMD by define(e);
(在AMD模式下,直接引入Sortable.min.js,源码是直接通过define(e),定义引用Sortable)
2. requirejs source code will report the error: " Uncaught Error: Mismatched anonymous define() module"
(requirejs 会报错:" Uncaught Error: Mismatched anonymous define() module")
see the error:
specific reasons:on the step1: define(e), the name is null, causing the following code to error
(具体原因:因为第一步中是直接 define(e),没有明确模块的name,导致requirejs 以下代码码未代码报错)
3. to fix: modify Sortable.min.js source code ,define the introduction in the following way to solve the problem.
(修改方法:在Sortable.min.js源代码,按照以下方式修改definy引入方式,解决问题。)
define("Sortable", function(Sortable) { return (t.Sortable = e(Sortable)) })
Metadata
Metadata
Assignees
Labels
No labels