Deploy source maps on dev server (at least).

RESOLVED INCOMPLETE

Status

Hello (Loop)
General
RESOLVED INCOMPLETE
2 years ago
a year ago

People

(Reporter: dmose, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
I had to do this to debug the typeerror stuff.  To do this for real, we'd want to tweak the Makefile to pass something relevant into webpack.config.js via the environment.  

But just to give a sense of what's basically required:

diff --git a/Makefile b/Makefile
index 37718eb..89e6a04 100644
--- a/Makefile
+++ b/Makefile
@@ -359,8 +359,8 @@ dist_standalone: standalone
 	# Standalone based on the built output
 	$(RSYNC) $(BUILT)/standalone/content/* $(DIST)/standalone
 	# Removing non-required JS files
-	rm -rf $(DIST)/standalone/js/ $(DIST)/standalone/shared/js \
-		$(DIST)/standalone/shared/vendor
+	#rm -rf $(DIST)/standalone/js/ $(DIST)/standalone/shared/js \
+	#	$(DIST)/standalone/shared/vendor
 	( cd built/standalone && NODE_ENV="production" $(NODE_LOCAL_BIN)/webpack \
 		-p -v --display-errors )
 	sed 's#webappEntryPoint.js#js/standalone.js#' \
diff --git a/standalone/webpack.config.js b/standalone/webpack.config.js
index 5eef91c..8cb92c9 100644
--- a/standalone/webpack.config.js
+++ b/standalone/webpack.config.js
@@ -18,6 +18,8 @@ function getSharedDir() {
  * those docs.
  */
 module.exports = {
+  devtool: "source-map",
+
   entry: "./content/webappEntryPoint.js",

   // These symbols come in either via <script> tags or the expose loader,
Support for Hello/Loop has been discontinued.

https://support.mozilla.org/kb/hello-status

Hence closing the old bugs. Thank you for your support.
Status: NEW → RESOLVED
Last Resolved: a year ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.