Skip to content

Instantly share code, notes, and snippets.

@alexcastrodev
Created November 17, 2024 22:45
Show Gist options
  • Save alexcastrodev/cae083ac82e7c973bb163401c5bc5cde to your computer and use it in GitHub Desktop.
Save alexcastrodev/cae083ac82e7c973bb163401c5bc5cde to your computer and use it in GitHub Desktop.
mantine optimize imports

Issue: vanilla-extract-css/vanilla-extract#374

Related problem on Stackoverflow https://stackoverflow.com/questions/78471919/how-to-debug-webpack-cache-packfilecachestrategy-serializing-big-strings-in

Mantine doc guide: https://mantine.dev/guides/next/#app-router-tree-shaking

Experimental docs: https://nextjs.org/docs/app/api-reference/next-config-js/optimizePackageImports

Warning

image

Next Build

Without Optimize flag

image

With Optimize flag

image

Browser first get without caching

Store Front without Optimize flag

image

Store Front with Optimize flag

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment