(See end for why this is not a dupe of How do I include a JavaScript file in another JavaScript file?)
Javascipt + Vue + webpack + vue-loader noob... stumbling on the si
I like the answer of Anacrust, though, by the fact "console.log" is executed twice, I would like to do a small update for src/mylib.js:
src/mylib.js
let test = { foo () { return 'foo' }, bar () { return 'bar' }, baz () { return 'baz' } } export default test
All other code remains the same...