Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server side es6 module bundling #21047

Open
1 task done
angelcalvasp opened this issue Oct 11, 2024 · 0 comments
Open
1 task done

Server side es6 module bundling #21047

angelcalvasp opened this issue Oct 11, 2024 · 0 comments

Comments

@angelcalvasp
Copy link

angelcalvasp commented Oct 11, 2024

Is there an existing issue for this?

none that I could find

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

I would like to take advantage of current server side bundling and minification functionality but If I wish to use modern es6 modules I am not able to with abp-script tag helper

Describe the solution you'd like

I would like to have a tag helper similar to <abp-script> that adds the module attribute if bundling is set to none or in dev, and when its set to bundle and or minify to read the imports of each file dependency and build a bundle from those references

it would result in a script like so

<script type="module" src=""><script/>
where if bundling mode is none it would just stay as is, but if bundling is done, it would go through the file look for import references at the top of the file, and merge all of these files as one

Additional context

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

No branches or pull requests

1 participant