From 40960871af6f488c0ddc5efa8ff150aeb0e59d4f Mon Sep 17 00:00:00 2001 From: Patrick Steele-Idem Date: Fri, 19 May 2017 17:27:55 -0600 Subject: [PATCH] Code comments --- compiler-browser.marko | 6 ++++++ components-browser.marko | 6 ++++++ index-browser.marko | 6 ++++++ legacy-components-browser.marko | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/compiler-browser.marko b/compiler-browser.marko index 357c89260..a131f927b 100644 --- a/compiler-browser.marko +++ b/compiler-browser.marko @@ -2,3 +2,9 @@ module-code(function(require) { var isDebug = require('./env').isDebug; return `module.exports = require("./${isDebug ? 'src' : 'dist'}/compiler");\n`; }); + +// What's going on here? We are using Marko to do JavaScript code generation +// during the module bundling phase to conditionally export either the +// "src" or the "dist" folder based on whether or not we are doing a +// debug or non-debug build. We are using Marko since we know the Marko compiler +// is enabled already (no extra babel transform required). diff --git a/components-browser.marko b/components-browser.marko index 1713277ac..ddcbed38a 100644 --- a/components-browser.marko +++ b/components-browser.marko @@ -2,3 +2,9 @@ module-code(function(require) { var isDebug = require('./env').isDebug; return `module.exports = require("./${isDebug ? 'src' : 'dist'}/components");\n`; }); + +// What's going on here? We are using Marko to do JavaScript code generation +// during the module bundling phase to conditionally export either the +// "src" or the "dist" folder based on whether or not we are doing a +// debug or non-debug build. We are using Marko since we know the Marko compiler +// is enabled already (no extra babel transform required). diff --git a/index-browser.marko b/index-browser.marko index 6743609a5..bd710b315 100644 --- a/index-browser.marko +++ b/index-browser.marko @@ -2,3 +2,9 @@ module-code(function(require) { var isDebug = require('./env').isDebug; return `module.exports = require("./${isDebug ? 'src' : 'dist'}/index");\n`; }); + +// What's going on here? We are using Marko to do JavaScript code generation +// during the module bundling phase to conditionally export either the +// "src" or the "dist" folder based on whether or not we are doing a +// debug or non-debug build. We are using Marko since we know the Marko compiler +// is enabled already (no extra babel transform required). diff --git a/legacy-components-browser.marko b/legacy-components-browser.marko index 884a9a85e..5ab78e6ad 100644 --- a/legacy-components-browser.marko +++ b/legacy-components-browser.marko @@ -2,3 +2,9 @@ module-code(function(require) { var isDebug = require('./env').isDebug; return `module.exports = require("./${isDebug ? 'src' : 'dist'}/components/legacy");\n`; }); + +// What's going on here? We are using Marko to do JavaScript code generation +// during the module bundling phase to conditionally export either the +// "src" or the "dist" folder based on whether or not we are doing a +// debug or non-debug build. We are using Marko since we know the Marko compiler +// is enabled already (no extra babel transform required).