mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
17 lines
469 B
JavaScript
17 lines
469 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
|
|
}
|