From 119764702ecb50d8d97739c6c0c79b52dd2296ac Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Wed, 6 Mar 2019 16:39:37 +0800 Subject: [PATCH] Remove custom presets warning --- lib/core/src/server/common/custom-presets.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/lib/core/src/server/common/custom-presets.js b/lib/core/src/server/common/custom-presets.js index aeabe5b9cb5a..841e0b396388 100644 --- a/lib/core/src/server/common/custom-presets.js +++ b/lib/core/src/server/common/custom-presets.js @@ -1,17 +1,7 @@ import path from 'path'; -import { logger } from '@storybook/node-logger'; import serverRequire from '../utils/server-require'; export default function loadCustomPresets({ configDir }) { const presets = serverRequire(path.resolve(configDir, 'presets')); - - if (presets) { - logger.warn( - '"Custom presets" is an experimental and undocumented feature that will be changed or deprecated soon. Use it on your own risk.' - ); - - return presets; - } - - return []; + return presets || []; }