Nuxt/index.js
Clark Du ef7a42649d misc: improve coverage and packaging (#3121)
nuxt-start and nuxt/legacy are also coming!
2018-03-28 02:58:17 +04:30

15 lines
314 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')
if (fs.existsSync('dist/nuxt.js')) {
module.exports = require('./dist/nuxt.js')
} else {
module.exports = require('./lib/index.js')
}