Is it possible to use something like source mapping when building with webpack? Sometimes the error messages in the XD Dev Console are ambiguous, referring to a line from the bundled main.js
, not the true source file.
-Thanks!
Is it possible to use something like source mapping when building with webpack? Sometimes the error messages in the XD Dev Console are ambiguous, referring to a line from the bundled main.js
, not the true source file.
-Thanks!
The build process compiles your code into one single main.js
file which is the only file XD looks at other than manifest.json
. I canât think of a good wait to map it back to the source code. anyone?
@stevekwak
There is a standard for source maps (in JS), which could (and for this would have to get parsed) by XD. Cf. https://www.html5rocks.com/en/tutorials/developertools/sourcemaps/. With it (which can get generated for basically all build processes, may that be from TypeScript, a simple webpack JS to JS compilation or whatever else), it is possible to trace back the âoriginalâ file location.
Is source mapping possible with Chrome Devtools in Adobe XD?
I tried the following steps but it didnât work.
It doesnât show webpack file tree in Chrome Devtools.
Has anyone ever had this problem?
Thanks for the help.