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

Updates for 2.0.3: Fix caching of manifest #14

Merged
merged 1 commit into from
May 30, 2017

Conversation

justin808
Copy link
Member

@justin808 justin808 commented May 30, 2017

Bug: React on Rails tests would load the manifest, then detect that we
need to compile, and then WebpackerLite would fail to reload the
manifest file. Either the old JS files would be used, or, if the test
build script deletes the compiled files, then the test would fail from
the named files being non-existent.

Fix: The FileLoader tracks the mtime of any file loaded, and a call to
load_instance will check that mtime if not in production.

Other changes:

  • Tests improved. Expected and actual params were reversed.
  • Support for an env value to use the pry debugger.

This change is Reviewable

Bug: React on Rails tests would load the manifest, then detect that we
need to compile, and then WebpackerLite would fail to reload the
manifest file. Either the old JS files would be used, or, if the test
build script deletes the compiled files, then the test would fail from
the named files being non-existent.

Fix: The FileLoader tracks the mtime of any file loaded, and a call to
load_instance will check that mtime if not in production.

Other changes:
* Tests improved. Expected and actual params were reversed.
* Support for an env value to use the pry debugger.
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