Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Track whether transpiler has ran with a flag on the Loader #348

Merged
merged 1 commit into from
Apr 4, 2015

Conversation

matthewp
Copy link
Contributor

@matthewp matthewp commented Apr 4, 2015

This fixes a bug where setting Traceur and/or Babel wasn't happening in
multiple-loader scenarios. Instead of using a closure variable set one
on the loader itself.

Picked a long name to avoid collision. Fixes #347

@@ -17,12 +15,12 @@
var self = this;

// pick up Transpiler modules from existing globals on first run if set
if (firstRun) {
if (!self.transpilerHasRan) {
Copy link
Member

Choose a reason for hiding this comment

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

Spelling - transpilerHasRun.

@guybedford
Copy link
Member

Sure that works great for me.

This fixes a bug where setting Traceur and/or Babel wasn't happening in
multiple-loader scenarios. Instead of using a closure variable set one
on the loader itself.

Picked a long name to avoid collision. Fixes ModuleLoader#347
@matthewp matthewp force-pushed the check-transpiler-ran branch from 780c316 to 680e90a Compare April 4, 2015 20:36
@matthewp
Copy link
Contributor Author

matthewp commented Apr 4, 2015

Ok, updated.

guybedford added a commit that referenced this pull request Apr 4, 2015
Track whether transpiler has ran with a flag on the Loader
@guybedford guybedford merged commit 88b1b09 into ModuleLoader:master Apr 4, 2015
@guybedford
Copy link
Member

Would you like a release now as well?

@matthewp
Copy link
Contributor Author

matthewp commented Apr 5, 2015

It's not needed, thanks though.

@matthewp matthewp deleted the check-transpiler-ran branch April 5, 2015 01:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transpiler breaks when traceur is already loaded and using multiple loaders
2 participants