dayjs
dayjs copied to clipboard
The externalPlugins example in README does not build for production
Mnimal reproduction link
Steps to reproduce:
- Cancel the default terminal script (it's the nuxt stackblitz instance)
- do
npm run build - do
npm run preview
Expected: The application runs normally. Result: runtime error. The "extend" function fails. saying t is not a function.
Had the same issue, currently transipling the dayjs in build works on my end
export default defineNuxtConfig({
// ... other stuff
build:{
transpile: [/dayjs/]
}
})