You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the use of transpile, this also solves @trpc/client and @trpc/server not working since they also uses mjs but I don't need to add the workaround which is nice
Version
v2.10.2
Reproduction link
https://codesandbox.io/s/nuxt-mjs-transpile-problem-mo9to
Steps to reproduce
If you import package, which is using
.mjs
extension, and add transpile to this module, imported code is not transpiledfor example:
npm i rope-sequence
import 'rope-sequence'
transpile: [({ isLegacy }) => isLegacy && "rope-sequence"]
What is expected ?
transpiled module - no
const
/let
and arrow functionsWhat is actually happening?
module has
const
and arrow functionsAdditional comments?
now I can update regex for babel-loader to
/\.m?jsx?$/i
and everythink works good in IEreproduction link with workaround https://codesandbox.io/s/nuxt-mjs-transpile-problem-workaround-z1tme
see
nuxt.config.js -> build -> extend
The text was updated successfully, but these errors were encountered: