Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Issue 404 - Add source map to package #410

Merged
merged 2 commits into from
Dec 7, 2018

Conversation

Marc-Andre-Rivet
Copy link
Contributor

- expose map files (dynamic)
- update changelog
'/dash_core_components/dash_core_components.min.js.map'
).format(__version__),
'namespace': 'dash_core_components',
'dynamic': True
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Expose the map files, make them dynamic

@@ -1,6 +1,6 @@
{
"name": "dash-core-components",
"version": "0.40.2",
"version": "0.40.3",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

bump version

const devtool = overrides.devtool || (
mode === 'development' ? "eval-source-map" : 'none'
);
const devtool = overrides.devtool || 'source-map';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

default to source-map now -- this causes the dev bundle to increase dramatically in number of lines, even if it is smaller now -- same issue as with plotly/dash-renderer#105 (comment)

Copy link
Contributor

@T4rk1n T4rk1n left a comment

Choose a reason for hiding this comment

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

💃

Copy link
Contributor

@valentijnnieman valentijnnieman left a comment

Choose a reason for hiding this comment

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

🎉 Thanks for making this PR, looks good to me!

@Marc-Andre-Rivet
Copy link
Contributor Author

Marc-Andre-Rivet commented Dec 7, 2018

Still need to figure out why that one percy test is failing reliably.

@valentijnnieman
Copy link
Contributor

Oops, you're right.

@T4rk1n
Copy link
Contributor

T4rk1n commented Dec 7, 2018

The snapshot is too soon after starting the server, add a time.sleep between those lines:

self.startServer(app=app)
self.snapshot('link -- location')

@Marc-Andre-Rivet
Copy link
Contributor Author

Ok. Will try that and force re-run it a few times.

@Marc-Andre-Rivet Marc-Andre-Rivet merged commit 7328bae into master Dec 7, 2018
@Marc-Andre-Rivet Marc-Andre-Rivet deleted the 0.40-issue404-source-map branch September 25, 2019 10:01
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.

None yet

3 participants