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 5f8b345 commit 0855054
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 @@ -4,6 +4,7 @@

- 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.2.8 - 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 @@ -34,6 +34,7 @@
"rewire": "^5.0.0",
"shx": "^0.3.3",
"sinon": "^11.1.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 @@ -52,6 +52,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 0855054

Please sign in to comment.