0👍
The
webpack
compiler can understand modules written asES2015
modules,CommonJS
orAMD
. However, some third party libraries may
expect global dependencies (e.g.$
forjQuery
). The libraries
might also create globals which need to be exported. These “broken
modules” are one instance where shimming comes into play.
import './path/to/library.js'
- [Vuejs]-Unable to add a chart to my vue component
- [Vuejs]-Pushing data from vue.js to flask rendered variable
Source:stackexchange.com