mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
27 lines
625 B
JavaScript
27 lines
625 B
JavaScript
/*!
|
|
* Nuxt.js
|
|
* (c) 2016-2017 Chopin Brothers
|
|
* Released under the MIT License.
|
|
*/
|
|
|
|
const path = require('path')
|
|
|
|
process.noDeprecation = true
|
|
|
|
// Node Source Map Support
|
|
// https://github.com/evanw/node-source-map-support
|
|
require('source-map-support').install();
|
|
|
|
const Core = require('./dist/core.js')
|
|
|
|
// Use special env flag to specify app dir without modify builder
|
|
if (!process.env.NUXT_APP_DIR) {
|
|
process.env.NUXT_APP_DIR = path.resolve(__dirname, 'app')
|
|
}
|
|
|
|
// Polyfill Builder into Core
|
|
const Builder = require('./dist/builder')
|
|
Object.assign(Core, Builder)
|
|
|
|
module.exports = Core.default ? Core.default : Core
|