mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
fix(storybook): fix broken Storybook stories during development (#29587)
Signed-off-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
@@ -75,6 +75,7 @@ if (!isDevMode) {
|
||||
const plugins = [
|
||||
new webpack.ProvidePlugin({
|
||||
process: 'process/browser.js',
|
||||
...(isDevMode ? { Buffer: ['buffer', 'Buffer'] } : {}), // Fix legacy-plugin-chart-paired-t-test broken Story
|
||||
}),
|
||||
|
||||
// creates a manifest.json mapping of name to hashed output used in template files
|
||||
@@ -336,6 +337,7 @@ const config = {
|
||||
fs: false,
|
||||
vm: require.resolve('vm-browserify'),
|
||||
path: false,
|
||||
...(isDevMode ? { buffer: require.resolve('buffer/') } : {}), // Fix legacy-plugin-chart-paired-t-test broken Story
|
||||
},
|
||||
},
|
||||
context: APP_DIR, // to automatically find tsconfig.json
|
||||
|
||||
Reference in New Issue
Block a user