UNPKG

541 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.webpackFinal = webpackFinal;
7
8var _nodeLogger = require("@storybook/node-logger");
9
10var _craConfig = require("./cra-config");
11
12function webpackFinal(config) {
13 if (!(0, _craConfig.isReactScriptsInstalled)()) {
14 _nodeLogger.logger.info('=> Using base config because react-scripts is not installed.');
15
16 return config;
17 }
18
19 _nodeLogger.logger.info('=> Loading create-react-app config.');
20
21 return (0, _craConfig.applyCRAWebpackConfig)(config);
22}
\No newline at end of file