Next.js Discord

Discord Forum

swcMinify breaks when using regeneratorRuntime()

Unanswered
Western yellowjacket posted this in #help-forum
Open in Discord
Western yellowjacketOP
I have an Next13 app that has a dependency that runs pieces of code at runtime. (This pieces of code are minified using @babel/plugin-transform-runtime and then, for what I understood, swc minifies it a second time and throws the error.)

Using swcMinify will throw this error to the console, and when using swcMinify: false all goes well.

0 Replies