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

Library doesn't work with ESBuild -> Uncaught Error: Dynamic require of "@nx-js/compiler-util" is not supported #15

Open
mirobo opened this issue Dec 11, 2023 · 1 comment

Comments

@mirobo
Copy link

mirobo commented Dec 11, 2023

Since the library has to be imported with "require", I encounter the same issue as here: evanw/esbuild#1921

Uncaught Error: Dynamic require of "@nx-js/compiler-util" is not supported

Can this library published in a way that it is compatible with ESBuild?

@mirobo
Copy link
Author

mirobo commented Dec 11, 2023

Seems like importing like this solves the issue 😅..

import { ... } from '@nx-js/compiler-util/dist/cjs.es6.js';

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

No branches or pull requests

1 participant