UNPKG

@beisen/storybook-react

Version:

Storybook for React: Develop React Component in isolation with Hot Reloading.

22 lines (15 loc) 541 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.webpackFinal = webpackFinal; var _nodeLogger = require("@storybook/node-logger"); var _craConfig = require("./cra-config"); function webpackFinal(config) { if (!(0, _craConfig.isReactScriptsInstalled)()) { _nodeLogger.logger.info('=> Using base config because react-scripts is not installed.'); return config; } _nodeLogger.logger.info('=> Loading create-react-app config.'); return (0, _craConfig.applyCRAWebpackConfig)(config); }