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

Support Node 16.12 #1

Open
sebamarynissen opened this issue Oct 26, 2021 · 1 comment
Open

Support Node 16.12 #1

sebamarynissen opened this issue Oct 26, 2021 · 1 comment
Assignees

Comments

@sebamarynissen
Copy link

Hi there,

I noticed that you are using my package create-esm-loader. I just wanted to inform you that the loaders api has changed in Node 16.12, so I updated the package to add support for it.

If you want to support Node 16.12 as well, you will have to change

import createLoader from 'create-esm-loader';
export const {
  resolve,
  getFormat,
  getSource,
  transformSource,
} = createLoader({ ... });

to

import createLoader from 'create-esm-loader';
export const {
  resolve,
  getFormat,
  getSource,
  transformSource,
  load,
} = await createLoader({ ... });
@jerrythomas
Copy link
Owner

Thanks. Will make the changes and test.

@jerrythomas jerrythomas self-assigned this Nov 2, 2021
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

2 participants