From 9fcd746c72d275f2f209eef487401372c7bc3645 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 24 May 2021 13:25:34 +0200 Subject: [PATCH] chore(nitro): disable auto mock --- packages/nitro/src/rollup/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nitro/src/rollup/config.ts b/packages/nitro/src/rollup/config.ts index 30c2b4823c..4870b97487 100644 --- a/packages/nitro/src/rollup/config.ts +++ b/packages/nitro/src/rollup/config.ts @@ -19,7 +19,7 @@ import { resolvePath, MODULE_DIR } from '../utils' import { dynamicRequire } from './plugins/dynamic-require' import { externals } from './plugins/externals' import { timing } from './plugins/timing' -import { autoMock } from './plugins/automock' +// import { autoMock } from './plugins/automock' import { staticAssets, dirnames } from './plugins/static' import { assets } from './plugins/assets' import { middleware } from './plugins/middleware' @@ -247,7 +247,7 @@ export const getRollupConfig = (nitroContext: NitroContext) => { })) // Automatically mock unresolved externals - rollupConfig.plugins.push(autoMock()) + // rollupConfig.plugins.push(autoMock()) // https://github.com/rollup/plugins/tree/master/packages/commonjs rollupConfig.plugins.push(commonjs({