Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions ui/craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,21 @@ const svgIcon = (path, selectors) => {
};

module.exports = {
webpack: {
configure: (config) => ({
...config,
resolve: {
...config.resolve,
fallback: {
// The Node.js crypto module isn’t available in browser contexts. However,
// code paths that require it aren’t actually called in the Aleph UI, so we
// resolve to an empty module.
// https://webpack.js.org/configuration/resolve/#resolvefallback
'crypto': false,
},
},
}),
},
style: {
sass: {
implementation: sass,
Expand Down
Loading
Loading