mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
25 lines
583 B
JavaScript
25 lines
583 B
JavaScript
// CommonJS proxy to bypass jiti transforms from nuxt 2
|
|
module.exports = function (...args) {
|
|
return import('./dist/module.mjs').then(m => m.default.call(this, ...args))
|
|
}
|
|
|
|
module.exports.defineNuxtConfig = (config = {}) => {
|
|
if (config.bridge !== false) {
|
|
if (!config.buildModules) {
|
|
config.buildModules = []
|
|
}
|
|
if (!config.buildModules.find(m => m === '@nuxt/bridge')) {
|
|
config.buildModules.push('@nuxt/bridge')
|
|
}
|
|
}
|
|
return config
|
|
}
|
|
|
|
const pkg = require('./package.json')
|
|
|
|
module.exports.meta = {
|
|
pkg,
|
|
name: pkg.name,
|
|
version: pkg.version
|
|
}
|