From 49ba9e8e6e3c81123cae89369c974370c2d056eb Mon Sep 17 00:00:00 2001 From: Tim Sullivan Date: Tue, 22 Aug 2017 09:25:33 -0700 Subject: [PATCH] [UI Bundler] Add Aliases for Moment so plugins can use the same instance (#13628) --- src/ui/ui_bundler_env.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/ui_bundler_env.js b/src/ui/ui_bundler_env.js index 41178ccb33e61..73ba57c03779f 100644 --- a/src/ui/ui_bundler_env.js +++ b/src/ui/ui_bundler_env.js @@ -31,6 +31,8 @@ export default class UiBundlerEnv { ui: fromRoot('src/ui/public'), test_harness: fromRoot('src/test_harness/public'), querystring: 'querystring-browser', + moment$: fromRoot('webpackShims/moment'), + 'moment-timezone$': fromRoot('webpackShims/moment-timezone') }; // map of which plugins created which aliases