Skip to content

Commit

Permalink
Webpack: remove Node polyfills to prepare to v5 migration [publish]
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypnosphi committed Oct 20, 2020
1 parent 2d01ff5 commit 059bf4d
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 590 deletions.
6 changes: 5 additions & 1 deletion .storybook/custom-header/header-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ exports.managerWebpack = function managerWebpack(config) {
plugins: [
...config.plugins,
new webpack.DefinePlugin({hubConfig})
]
],
node: {
Buffer: false,
process: false
}
};
};
4 changes: 4 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ module.exports = {
config.plugins.push(new webpack.DefinePlugin({hubConfig}));

config.resolve.alias['@jetbrains/ring-ui'] = path.resolve(__dirname, '..');
config.node = {
Buffer: false,
process: false
};

return config;
}
Expand Down
Loading

0 comments on commit 059bf4d

Please sign in to comment.