Skip to content

Commit

Permalink
Fixed invalid source-maps in builded js file #2613
Browse files Browse the repository at this point in the history
  • Loading branch information
liborm85 committed Dec 30, 2023
1 parent ebaa76c commit fa4dca9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Minimal supported version Node.js 16 LTS
- Fixed cover image size inside table
- Fixed "Cannot read properties of undefined (reading 'bottomMost')" if table contains too few rows
- Fixed invalid source-maps in builded js file

## 0.3.0-beta.6 - 2023-11-09

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"rewire": "^7.0.0",
"shx": "^0.3.4",
"sinon": "^17.0.1",
"source-map-loader": "^4.0.1",
"stream-browserify": "^3.0.0",
"string-replace-webpack-plugin": "^0.1.3",
"svg-to-pdfkit": "^0.1.8",
Expand Down
5 changes: 5 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ module.exports = {
})
}
},
{
enforce: "pre",
test: /\.(cjs|js)$/,
use: ["source-map-loader"],
},
{
test: /\.js$/,
include: /(pdfkit|linebreak|fontkit|saslprep|restructure|unicode-trie|unicode-properties|dfa|buffer|png-js|crypto-js)/,
Expand Down

0 comments on commit fa4dca9

Please sign in to comment.