-
-
Notifications
You must be signed in to change notification settings - Fork 73
Issue 284 - Add source map to NPM and PyPi packages #285
Conversation
"no-console": false | ||
}, | ||
"rulesDirectory": [] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Solving small issues with tslint rules in toolchain subfolders. Not related to main issue.. want to be able to use console.log in toolchain!
@@ -21,18 +21,19 @@ module.exports = (preprocessor = {}, mode = 'development') => { | |||
library: dashLibraryName, | |||
libraryTarget: 'umd' | |||
}, | |||
devtool: 'source-map', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All is tslint fixes except for this. This setting is slower but more accurate than other mappings. See here: https://webpack.js.org/configuration/devtool/
@@ -1,4 +1,5 @@ | |||
include dash_table/bundle.js | |||
include dash_table/bundle.js.map |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PyPi addition
dash_table/__init__.py
Outdated
'external_url': ( | ||
'https://unpkg.com/dash-table@{}/dash_table/bundle.js.map' | ||
).format(__version__), | ||
'namespace': package_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For Dash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "dash-table", | |||
"version": "3.1.8", | |||
"version": "3.1.9", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bump version
@@ -76,7 +76,7 @@ | |||
"webpack-preprocessor": "^0.1.12" | |||
}, | |||
"files": [ | |||
"/dash_table/bundle*.js" | |||
"/dash_table/bundle*{.js,.map}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pickup both js and map files for the NPM package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 🎉
dash_table/__init__.py
Outdated
'external_url': ( | ||
'https://unpkg.com/dash-table@{}/dash_table/bundle.js.map' | ||
).format(__version__), | ||
'namespace': package_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
…-map # Conflicts: # CHANGELOG.md # dash_table/bundle.js # dash_table/demo.js # dash_table/package-info.json # package-lock.json # package.json
Fixes #284
Relates to plotly/dash#478
Relates to plotly/dash-renderer#104
Relates to plotly/dash-core-components#404