我通过npm安装了jquery(3.2.1)和jquery-ui-dist(1.12.1).(它们不包含在html中的脚本标记中)
在客户端脚本中我使用:
window.$ = require('jquery');// plain jQuery stuff works fine
import 'jquery-ui-dist'; // breaks whole jQuery, with Error (missing module 8)
Run Code Online (Sandbox Code Playgroud)