dayjs icon indicating copy to clipboard operation
dayjs copied to clipboard

The externalPlugins example in README does not build for production

Open oMoMa opened this issue 1 year ago • 1 comments

Mnimal reproduction link

Steps to reproduce:

  1. Cancel the default terminal script (it's the nuxt stackblitz instance)
  2. do npm run build
  3. do npm run preview

Expected: The application runs normally. Result: runtime error. The "extend" function fails. saying t is not a function.

oMoMa avatar Mar 03 '24 14:03 oMoMa

Had the same issue, currently transipling the dayjs in build works on my end

export default defineNuxtConfig({
  // ... other stuff

  build:{
    transpile: [/dayjs/]
  }
})

kensongzhu avatar May 02 '24 13:05 kensongzhu