Yes mate, I've tried that.
Problem is, that it does not know 'utc'
in index.js:
...
created: function() {
var utc = require('dayjs/plugin/utc') // or whatever path to utc..
dayjs.extend(utc)
},
ReferenceError: require is not defined
at wn.created (index.js:719)
at He (vue.min.js:6)
at Yt (vue.min.js:6)
at wn.t._init (vue.min.js:6)
at new wn (vue.min.js:6)
at index.js:203`Preformatted text`
When I declare utc outside the Vue app like this...
var utc = require('dayjs/plugin/utc')
dayjs.extend(utc)
... it's not knowing require.
Regarding your edit. What is 'dayjs_plugin_utc' referring to?
You cannot use require or import in the browser unless you have a build step that converts it (or, for import, your library is a HTML module in a newish browser).