Skip to content

Commit

Permalink
Merge pull request #5911 from storybooks/4995-custom-presets
Browse files Browse the repository at this point in the history
Remove custom presets warning
  • Loading branch information
shilman authored Mar 8, 2019
2 parents 0b1abda + 1197647 commit 2339ce7
Showing 1 changed file with 1 addition and 11 deletions.
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 || [];
}

0 comments on commit 2339ce7

Please sign in to comment.