Closed izaera closed 4 years ago
So will bundler v3 support source maps? for things like React portlets? and if so how do i switch the build mode from production to development since lnbs-build seems to be in charge of that
@mfreeman-xtivia we want to support source maps, but it's proving much more difficult than we thought at first, second and third :-(. Basically, we need to do something that no one else has done yet, AFAIK, which is translating source maps for multiple file bundles.
Going to close this as we've migrated everything in the toolkit to the liferay-frontend-projects monorepo. We can re-send the PR there if we want to revisit this line of development in the future. This (liferay-js-toolkit) repo will soon be moved into archived (read-only) mode.
Don't break source maps for single source transformations.
Note that this doesn't fix the case where one single output file maps to multiple input files.
See https://github.com/liferay/liferay-js-toolkit/issues/565#issuecomment-654883046 for more info.