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

Add .mjs support. #108

Merged
merged 1 commit into from
Apr 6, 2017
Merged

Add .mjs support. #108

merged 1 commit into from
Apr 6, 2017

Conversation

jdalton
Copy link
Contributor

@jdalton jdalton commented Apr 2, 2017

This PR adds .mjs support. It will need a unit test. If you add one I can mimic for others.

@jdalton jdalton mentioned this pull request Apr 3, 2017
7 tasks
const file = cacheFiles[i];
if (/\.js$/.test(file)) {
pkgInfo.cache[file] = true;
}
Copy link
Owner

Choose a reason for hiding this comment

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

I think this is okay because we write .js cache files even if the original file was .mjs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ya, the check, /\.js$/, didn't seem to be needed as all files were .js anyways.

@jdalton jdalton merged commit 0163fd7 into benjamn:master Apr 6, 2017
@jdalton jdalton deleted the mjs branch April 6, 2017 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants