From d994b992e81fc8cc376c85e4ce1819278d62e725 Mon Sep 17 00:00:00 2001 From: Ricardo Gobbo de Souza Date: Fri, 28 Oct 2022 11:47:16 -0300 Subject: [PATCH] fix: compatibility with bridge --- src/module.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/module.ts b/src/module.ts index 101c7acf..98f2d75d 100644 --- a/src/module.ts +++ b/src/module.ts @@ -1,7 +1,7 @@ import { existsSync } from 'fs' import { defineNuxtModule, addServerHandler, createResolver, useLogger, isNuxt2, findPath, addTemplate } from '@nuxt/kit' import { name, version } from '../package.json' -import { Rule } from './types' +import type { Rule } from './types' export type ModuleOptions = { configPath: string, @@ -15,7 +15,10 @@ export default defineNuxtModule({ meta: { name, version, - configKey: 'robots' + configKey: 'robots', + compatibility: { + bridge: true + } }, defaults: { configPath: 'robots.config',