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

fix: allow bundling .mjs and .mts files via ComponentLoader #1576

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

tomups
Copy link
Contributor

@tomups tomups commented Nov 1, 2023

When using AdminJS with CommonJS projects (like NestJS), the only way I could have custom React components working has been by putting them into .mjs files (this unfortunately loses typing as TypeScript doesn't support .mtsx, but that's how it is...)

Currently, ComponentLoader doesn't allow this file extension, but I don't think there is any problem by allowing them? It worked for me at least, so here is the change :)

@tomups tomups changed the title Allow bundling .mjs and .mts files via ComponentLoader fix: Allow bundling .mjs and .mts files via ComponentLoader Nov 1, 2023
@tomups tomups changed the title fix: Allow bundling .mjs and .mts files via ComponentLoader fix: allow bundling .mjs and .mts files via ComponentLoader Nov 1, 2023
@dziraf dziraf merged commit 2d4196f into SoftwareBrothers:master Nov 14, 2023
4 checks passed
github-actions bot pushed a commit that referenced this pull request Nov 14, 2023
## [7.3.1](v7.3.0...v7.3.1) (2023-11-14)

### Bug Fixes

* add support for bundling .mjs and .mts files via component-loader ([#1576](#1576)) ([2d4196f](2d4196f))
Copy link

🎉 This PR is included in version 7.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants