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

Use import = require() for commonjs #91

Merged
merged 1 commit into from
Mar 3, 2023
Merged

Use import = require() for commonjs #91

merged 1 commit into from
Mar 3, 2023

Conversation

zm-cttae-archive
Copy link
Contributor

Closes #90.
Replaces let with import for type & bundler support.
https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require

@pjmolina
Copy link
Contributor

pjmolina commented Feb 7, 2023

Your fix is not covering all the cases @M00TSDNS: require() is ok when running for NodeJS context but unavailable in browser contexts.

@zm-cttae-archive
Copy link
Contributor Author

Need clarification here.
I thought commonjs output was for all environments except browser.
Will this output require in browser contexts?

@zm-cttae-archive
Copy link
Contributor Author

What is blocking the pull request?

@pjmolina
Copy link
Contributor

pjmolina commented Mar 3, 2023

My lack of time only. Merging. Thanks!

@pjmolina pjmolina merged commit 16fc0cd into metadevpro:master Mar 3, 2023
@zm-cttae-archive zm-cttae-archive deleted the feat-import-keyword-commonjs branch March 5, 2023 17:18
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

Successfully merging this pull request may close these issues.

Convert new peggy --dependencies or --dependency into TypeScript imports
2 participants