Next.js Discord

Discord Forum

What does `transpilePackages` do?

Unanswered
Golden northern bumble bee posted this in #help-forum
Open in Discord
Avatar
Golden northern bumble beeOP
There are only a few lines of docs about the transpilePackages option. What precisely it does? It doesn't seem to add more input to Webpack on Next13. What if I need to process my files?

9 Replies

Avatar
https://www.npmjs.com/package/next-transpile-modules
You can check this npm packages and transpilePackages is replacing that library
Avatar
Golden northern bumble beeOP
Maybe I can try this module instead of the built-in option
Avatar
Golden northern bumble beeOP
Know what? After reading their page I still don't have an idea how it works and what it actually does
Yeah, there is an example:
<main>
      {/* will output <button class="Button_error__xxxxx"> */}
      <Button>Styled button</Button>
    </main>

But it's not clear who does it? The module? Webpack? Babel?
Avatar
oh that built-in options is there to replace the module
🤣
what's the reason you don't like that option?
Avatar
Golden northern bumble beeOP
becasue it's completely not working 🙂