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

Move the renderer build into the renderer dir #1685

Merged
merged 4 commits into from
Jul 9, 2021
Merged

Conversation

alexcjohnson
Copy link
Collaborator

FYI @HammadTheOne - since the renderer is also an npm package, we want to keep its build output within that package for npm publishing to get all the right files. But I left all the other js deps in the deps folder where you put them in #1611.

@eff-kay please review - this is I think the last change we need before we can publish a new version of Dash.

Contributor Checklist

optionals

  • I have added entry in the CHANGELOG.md

needed for npm publishing to get all the right files
@alexcjohnson
Copy link
Collaborator Author

The test failure is very strange... async-plotly.js can't be found. It gets added to the <head> tag and executed - the app works just fine - but then somehow the script tag gets deleted before we can see it in the test. I was only able to see it by setting a breakpoint in LazyLoader/plotly.js and then stepping forward a little. I'll have to dig into this tomorrow... perhaps some new webpack behavior?

@eff-kay
Copy link
Contributor

eff-kay commented Jul 9, 2021

some tests fail, but other than that LGTM.

@alexcjohnson
Copy link
Collaborator Author

It looks like webpack 5 indeed removes the script after it executes. AFAICT this was silently introduced with another feature and never documented. I'm just going to tweak the test to ensure the graph rendered and the sync module is present iff expected.

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