Skip to content
Open
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
7 changes: 7 additions & 0 deletions web/webpack.shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ let webpackShimConfig = {
'graphlib': path.join(__dirname, 'node_modules/graphlib'),
'react': path.join(__dirname, 'node_modules/react'),
'react-dom': path.join(__dirname, 'node_modules/react-dom'),
// react-checkbox-tree v2 marks the package as "type": "module" but ships
// a UMD bundle as its CommonJS entry point. Babel transforms our ESM
// imports to require(), so webpack picks the UMD file and then treats it
// as ESM (because of "type": "module") — and module.exports never runs,
// leaving the default export undefined. Point directly at the ESM bundle
// to bypass the broken main entry.
'react-checkbox-tree$': path.join(__dirname, 'node_modules/react-checkbox-tree/lib/index.esm.js'),
'stylis': path.join(__dirname, 'node_modules/stylis'),
'popper.js': path.join(__dirname, 'node_modules/popper.js'),

Expand Down
Loading