2021-10-02 16:01:17 +00:00
|
|
|
// 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))
|
|
|
|
}
|
2021-10-06 12:31:52 +00:00
|
|
|
|
|
|
|
module.exports.defineNuxtConfig = (config = {}) => {
|
|
|
|
if (config.bridge !== false) {
|
|
|
|
if (!config.buildModules) {
|
|
|
|
config.buildModules = []
|
|
|
|
}
|
2021-10-29 10:13:59 +00:00
|
|
|
if (!config.buildModules.find(m => m === '@nuxt/bridge' || m === '@nuxt/bridge-edge')) {
|
2021-10-06 12:31:52 +00:00
|
|
|
config.buildModules.push('@nuxt/bridge')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return config
|
|
|
|
}
|
2021-10-07 08:43:00 +00:00
|
|
|
|
|
|
|
const pkg = require('./package.json')
|
|
|
|
|
|
|
|
module.exports.meta = {
|
|
|
|
pkg,
|
|
|
|
name: pkg.name,
|
|
|
|
version: pkg.version
|
|
|
|
}
|