Nuxt and the unexpected token export

Posted on November 2, 2021

Today I learned that in Nuxt, if you're using an ES6 library, you need to specifically set the transpilation option for each of them in nuxt.config.js:

build: {
    transpile: [
      '@presenta/config-interpolator'
    ],
    ...

Found out here.