SoftwareBrothers / adminjs

AdminJS is an admin panel for apps written in node.js
https://adminjs.co
MIT License
8.07k stars 650 forks source link

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

Closed tomups closed 8 months ago

tomups commented 8 months ago

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 :)

github-actions[bot] commented 8 months ago

:tada: This PR is included in version 7.3.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: