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

ESM support? #27

Open
eric-burel opened this issue Sep 1, 2022 · 2 comments
Open

ESM support? #27

eric-burel opened this issue Sep 1, 2022 · 2 comments

Comments

@eric-burel
Copy link

eric-burel commented Sep 1, 2022

Hi, running on Node 16 and Esbuild 0.15 (via Tsup), the default export is not correctly defined.

I need to do:

import graphqlLoaderPluginPkg from '@luckycatfactory/esbuild-graphql-loader';
const graphqlLoaderPlugin = (graphqlLoaderPluginPkg as any).default

Similar issue with yaml: martonlederer/esbuild-plugin-yaml#3

@SagnikPradhan
Copy link

This seems to work for me

@muuvmuuv
Copy link

Can you create a pull request for it? Really not smooth to have patches applied for cases

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

3 participants