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

wip - Support compilation of "helper" modules #177

Closed
wants to merge 2 commits into from

Conversation

jamestalmage
Copy link
Contributor

This solves the basic requirements of #156.

It relies on floatdrop/require-from-string#3

Along the way I uncovered a few other bugs that should get fixed in master (I will call those out in line comments).

// @floatdrop

// TODO: This needs to be smarter.
function shouldTranspile(filePath) {
return testDir === path.dirname(filePath) && filePath[0] === '_' || filePath === testPath;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This shouldTranspile definitely needs to be improved. Very naive.

I'm holding off investing time on it until we have a decision what the API and CLI should look like.

}

// TODO: This needs to be smarter.
function shouldTranspile(filePath) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This shouldTranspile method definitely needs to be improved. Very naive.

I'm holding off investing time on it until we have a decision what the API and CLI should look like.

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.

1 participant