1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.webpackFinal = webpackFinal;
|
7 |
|
8 | var _nodeLogger = require("@storybook/node-logger");
|
9 |
|
10 | var _craConfig = require("./cra-config");
|
11 |
|
12 | function 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 |