marko/components-browser.marko
Patrick Steele-Idem 40960871af Code comments
2017-05-19 17:27:55 -06:00

11 lines
524 B
Plaintext

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).