From 20157a6743eaafe7cbbfc8e4e4e02f891691028b Mon Sep 17 00:00:00 2001 From: Roman Gotsiy Date: Tue, 3 Nov 2015 01:12:08 +0200 Subject: [PATCH] Add reflect-metadata as external dependency --- build/tasks/build.js | 3 ++- lib/index.js | 1 - package.json | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build/tasks/build.js b/build/tasks/build.js index 7c585bf4..cdd9d426 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -26,7 +26,8 @@ gulp.task('inlineTemplates', function() { }); var JS_DEV_DEPS = [ - 'node_modules/zone.js/dist/zone-microtask.js' + 'node_modules/zone.js/dist/zone-microtask.js', + 'node_modules/reflect-metadata/Reflect.js' ]; // concatenate angular2 deps diff --git a/lib/index.js b/lib/index.js index 7b517747..5b9b6222 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,6 +1,5 @@ 'use strict'; -import 'reflect-metadata'; import {bootstrap} from 'angular2/angular2'; import {Redoc, SideMenu} from './components/index'; import SchemaManager from './utils/SchemaManager'; diff --git a/package.json b/package.json index e4851b41..ec5c6ddc 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,7 @@ "gulp-sourcemaps": "^1.6.0", "jshint-stylish": "^2.0.1", "jspm": "^0.16.11", + "reflect-metadata": "^0.1.2", "require-dir": "^0.3.0", "run-sequence": "^1.1.4", "systemjs-builder": "^0.14.7",