错误来源:
vite在引入dragula的时候,报错:
global is not defined at node_modules/custom-event/index.js (dragula.js
解决方法:
// index.html
<html>
...
<body>
<script>
global = globalThis
</script>
</body>
</html>
vite在引入dragula的时候,报错:
global is not defined at node_modules/custom-event/index.js (dragula.js
// index.html
<html>
...
<body>
<script>
global = globalThis
</script>
</body>
</html>