[Vuejs]-Is there a way to include non-exporting js library into vue cli project?

0👍

The webpack compiler can understand modules written as ES2015
modules, CommonJS or AMD. However, some third party libraries may
expect global dependencies (e.g. $ for jQuery). The libraries
might also create globals which need to be exported. These “broken
modules” are one instance where shimming comes into play.

Reference.

import './path/to/library.js'

Leave a comment