Skip to content

ES6 -> JavaScript module with "module": "esmodule" #838

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

Merged
merged 1 commit into from
Apr 13, 2024

Conversation

cometkim
Copy link
Member

Copy link

vercel bot commented Apr 11, 2024

@cometkim is attempting to deploy a commit to the ReScript Association Team on Vercel.

A member of the Team first needs to authorize it.

Comment on lines +67 to 68
import * as LeftPad from "./leftPad";
var paddedResult = LeftPad("hi", 5);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@module external leftPad: (string, int) => string = "./leftPad"
let paddedResult = leftPad("hi", 5)

btw, this is a problematic example that only works with transpilers such as Babel or TypeScript (a.k.a synthetic default) and does not work with standard modules.

@fhammerschmidt
Copy link
Member

sorry, I merged your other PR and created a conflict, can you fix it then we are good to go?

@cometkim
Copy link
Member Author

no problem!

@fhammerschmidt fhammerschmidt merged commit df19ede into rescript-lang:master Apr 13, 2024
1 of 2 checks passed
@cometkim cometkim deleted the esmodule branch April 13, 2024 12:44
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.

2 participants