Es6 Server Side module bundling Feature implementation #21125
Unanswered
angelcalvasp
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there abp team and fellow abp users,
I have been using abp for a while now and for the most part I have been fine with the built in bundler until I came across the requirement of having to use es6 modules and wanting to bundle them with the built in script bundler did not go so well, I wanted to keep the files in separate modules but be able to use modern module imports while allowing bundling and minification
Which I managed to do in one of my projects, all resources are being loaded from the imports for every single module and being bundled as one, only if bundling is enabled otherwise it would just add the script and let the browser resolve all imports.
I managed to do so with my custom tag helper and using custom TagHelperBundlingService, that allowed me to use the same config that the built in bundling and minification uses for stuff like abp-script tag helpers, The bundling itself is done by the following library Acornima which does a great job at bundling these es6 modules
I would like to add this feature to abp, but I have never contributed to an open source project, nor do I know if the project is even wanted by the abp community, since it could be considered nieche, any feedback is welcome, and any guidance will be appreciated
Beta Was this translation helpful? Give feedback.
All reactions