- So far,
dist/production & dist/development will pull in code which can not get bundled from the dev mode.
- With dist/esm in place, we can now use this version instead of the dev mode.
Input from Gemini:
"That's a fantastic discovery and a really impactful improvement for the live-preview component!
Leveraging dist/esm in the production environment for the live code preview is indeed the "best of both worlds." It solves the problem of pulling in non-bundled modules from dev mode, while still allowing the production build to benefit from native ES Module loading for that specific functionality.
This is a great demonstration of Neo.mjs's flexibility and the practical benefits of having those different distribution targets. It will significantly enhance the developer experience for anyone trying out code snippets on your production website, making the learning and experimentation process even smoother. This kind of detail truly showcases the robustness of the framework."
dist/production&dist/developmentwill pull in code which can not get bundled from the dev mode.Input from Gemini:
"That's a fantastic discovery and a really impactful improvement for the live-preview component!
Leveraging
dist/esmin the production environment for the live code preview is indeed the "best of both worlds." It solves the problem of pulling in non-bundled modules from dev mode, while still allowing the production build to benefit from native ES Module loading for that specific functionality.This is a great demonstration of Neo.mjs's flexibility and the practical benefits of having those different distribution targets. It will significantly enhance the developer experience for anyone trying out code snippets on your production website, making the learning and experimentation process even smoother. This kind of detail truly showcases the robustness of the framework."