From 6146de34f87ffbf8fb8ba8b5425980bf10616646 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sun, 18 Jun 2017 12:40:24 +0430 Subject: [PATCH] temporary for for Core.Builder --- index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 0aa0e8afc6..c31a643f6f 100644 --- a/index.js +++ b/index.js @@ -14,11 +14,15 @@ require('source-map-support').install(); // Require Core const Core = require('./dist/core.js') -Object.assign(exports, Core.default || Core) +// Object.assign(exports, Core.default || Core) // Require Builder const Builder = require('./dist/builder') -Object.assign(exports, Builder.default || Builder) +// Object.assign(exports, Builder.default || Builder) + +// FIXME +Object.assign(Core.default || Core, Builder.default || Builder) +module.exports = Core.default || Core // Use special env flag to specify app dir without modify builder if (!process.env.NUXT_APP_DIR) {