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

Fixes made while experimenting #70

Merged
merged 1 commit into from
Jul 13, 2017
Merged

Conversation

davidtheclark
Copy link
Contributor

While trying this out on a real site outside of this repository, I came across a number of problems to fix.

  • Don't swallow errors if the Batfish configuration module's function throws an error.
  • Allow different kinds of exports of the component from wrapperPath.
  • Don't exclude from Babel Batfish's src/ files when they are within node_modules (when Batfish is a dependency).
  • Add the inlineJs option to provide inline JS. The problem with using react-helmet directly was that on the development server inlined scripts were not inserted into the <head> and executed before React rendered. This divergence between the development server and the static site wasn't ok with me. Modified the inline-js example to use the new option, and changed docs.
  • Allow Webpack to resolve loader names even when Batfish is a dependency with nested dependencies.
  • Fix the externals RegExp during the static build. I kept getting React and UglifyJS in there — not what I wanted.

@jfurrow for review. Could you double-check a few of the experiments, make sure I didn't break them?

@davidtheclark davidtheclark force-pushed the integration-improvements branch from 3047079 to a3913a8 Compare July 13, 2017 15:31
Copy link
Contributor

@jfurrow jfurrow left a comment

Choose a reason for hiding this comment

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

The examples are all working as expected. Let's ship it!

@davidtheclark davidtheclark merged commit 03eb9d5 into master Jul 13, 2017
@davidtheclark davidtheclark deleted the integration-improvements branch July 13, 2017 17:55
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