Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove custom presets warning #5911

Merged
merged 1 commit into from
Mar 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions lib/core/src/server/common/custom-presets.js
Original file line number Diff line number Diff line change
@@ -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 || [];
}