mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
aad15b5a5c
don't use dist unless inside an npm package or explicitly used
16 lines
364 B
JavaScript
16 lines
364 B
JavaScript
/*!
|
|
* Nuxt.js
|
|
* (c) 2016-2018 Chopin Brothers
|
|
* Core maintainers: Pooya Parsa (@pi0) - Clark Du (@clarkdo)
|
|
* Released under the MIT License.
|
|
*/
|
|
|
|
const fs = require('fs')
|
|
const path = require('path')
|
|
|
|
if (fs.existsSync(path.resolve(__dirname, '.babelrc'))) {
|
|
module.exports = require('./lib/index.js')
|
|
} else {
|
|
module.exports = require('./dist/nuxt.js')
|
|
}
|