Skip to content

Commit

Permalink
doc: Added comment on webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrimpCryptid committed Nov 22, 2024
1 parent c10b915 commit 4643cce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ module.exports = ({ analyze, env } = {}) => ({
symlinks: false,
extensions: [".ts", ".tsx", ".js", ".jsx", ".json"],
mainFields: ["module", "main", "browser"],
// Papaparse relies on `stream` which is a Node.js module that's not available in the browser.
// Webpack configuration will fail unless we tell it to ignore the `stream` module and not
// to try and find a fallback/pollyfill for it.
fallback: {
stream: false,
},
Expand Down

0 comments on commit 4643cce

Please sign in to comment.