From c8f9c365f94f3131b803188125194cf883a1750e Mon Sep 17 00:00:00 2001 From: Jason Robitaille Date: Tue, 30 May 2017 14:45:50 -0700 Subject: [PATCH] PLAT-40847: Add internal moonstone localization support to enact-dev, build, etc (#76) * PLAT-40847: Add internal moonstone localization support to enact, enact-dev, build, etc. * Fallback for when moonstone screentypes is undefined. * Decouple @enact/i18n and @enact/moonstone from v8 snapshot and treat them as optional dependencies. --- global-cli/modifiers/snapshot.js | 13 +++++- .../modifiers/util/prerendered-startup.txt | 2 +- global-cli/modifiers/util/snapshot-helper.js | 40 ++++++++++++++----- 3 files changed, 42 insertions(+), 13 deletions(-) diff --git a/global-cli/modifiers/snapshot.js b/global-cli/modifiers/snapshot.js index c530b340..d7a62dad 100644 --- a/global-cli/modifiers/snapshot.js +++ b/global-cli/modifiers/snapshot.js @@ -2,7 +2,8 @@ var path = require('path'), exists = require('path-exists').sync, helper = require('./util/config-helper'), - SnapshotPlugin = require('./util/SnapshotPlugin'); + SnapshotPlugin = require('./util/SnapshotPlugin'), + IgnorePlugin = require('webpack').IgnorePlugin; module.exports = function(config, opts) { if(!opts.framework) { @@ -27,4 +28,14 @@ module.exports = function(config, opts) { // Disabled temporarily until effectiveness is proven // append: (opts.framework ? '\nenact_framework.load();\n' : undefined) })); + + var ssHelperDeps = [ + '@enact/i18n', + '@enact/moonstone' + ]; + for(var i=0; i