2020-07-22 13:21:25 -04:00
|
|
|
/**
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
* or more contributor license agreements. See the NOTICE file
|
|
|
|
* distributed with this work for additional information
|
|
|
|
* regarding copyright ownership. The ASF licenses this file
|
|
|
|
* to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance
|
|
|
|
* with the License. You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing,
|
|
|
|
* software distributed under the License is distributed on an
|
|
|
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
* KIND, either express or implied. See the License for the
|
|
|
|
* specific language governing permissions and limitations
|
|
|
|
* under the License.
|
|
|
|
*/
|
2021-07-26 12:30:35 -04:00
|
|
|
// Superset's webpack.config.js
|
2020-07-22 13:21:25 -04:00
|
|
|
const customConfig = require('../webpack.config.js');
|
|
|
|
|
|
|
|
module.exports = {
|
2021-09-27 13:51:53 -04:00
|
|
|
core: {
|
|
|
|
builder: 'webpack5',
|
|
|
|
},
|
2022-01-20 09:35:09 -05:00
|
|
|
stories: [
|
|
|
|
'../src/@(components|common|filters|explore)/**/*.stories.@(t|j)sx',
|
|
|
|
],
|
2020-07-22 13:21:25 -04:00
|
|
|
addons: [
|
2020-08-21 01:41:25 -04:00
|
|
|
'@storybook/addon-essentials',
|
2020-07-22 13:21:25 -04:00
|
|
|
'@storybook/addon-links',
|
|
|
|
'storybook-addon-jsx',
|
2021-09-27 13:51:53 -04:00
|
|
|
'@storybook/addon-knobs',
|
2020-08-21 01:41:25 -04:00
|
|
|
'storybook-addon-paddings',
|
2020-07-22 13:21:25 -04:00
|
|
|
],
|
|
|
|
webpackFinal: config => ({
|
|
|
|
...config,
|
|
|
|
module: {
|
|
|
|
...config.module,
|
|
|
|
rules: customConfig.module.rules,
|
|
|
|
},
|
2020-08-05 01:39:14 -04:00
|
|
|
resolve: {
|
|
|
|
...config.resolve,
|
|
|
|
...customConfig.resolve,
|
|
|
|
},
|
2020-07-22 13:21:25 -04:00
|
|
|
plugins: [...config.plugins, ...customConfig.plugins],
|
|
|
|
}),
|
2021-07-22 19:30:25 -04:00
|
|
|
typescript: {
|
|
|
|
reactDocgen: 'none',
|
|
|
|
},
|
2020-08-02 17:32:17 -04:00
|
|
|
};
|