Skip to content

Commit

Permalink
Add util polyfil
Browse files Browse the repository at this point in the history
  • Loading branch information
trungleduc committed Feb 7, 2024
1 parent ec2e3c1 commit 73d6889
Show file tree
Hide file tree
Showing 3 changed files with 2,844 additions and 1,645 deletions.
3 changes: 2 additions & 1 deletion packages/voila/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"@lumino/widgets": "^2.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"style-mod": "^4.0.3"
"style-mod": "^4.0.3",
"util": "^0.12.5"
},
"devDependencies": {
"@jupyterlab/builder": "^4.0.0",
Expand Down
7 changes: 6 additions & 1 deletion packages/voila/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,12 @@ module.exports = [
...data.dependencies
}
})
]
],
resolve: {
fallback: {
util: require.resolve('util/')
}
}
}),
merge(baseConfig, {
entry: './' + path.relative(__dirname, styleEntryPoint),
Expand Down

0 comments on commit 73d6889

Please sign in to comment.