How to use import to reference non-modular third-party libraries in vue?

for some modular tools, it is generally possible to: import xx from "xxx" after npm install is directly used in the component.

but it cannot be used in this way for some non-modular third-party libraries. For example, you can"t directly import $from "jquery",webpack with an auxiliary plug-in that provides these functions. But what I have now is a third-party library downloaded locally, so how do I implement import references?

Mar.18,2022

put it in the static directory, and then import'.. / xxx.js'

Menu