Skip to content

Commit

Permalink
Include source maps for Parchment (#4057)
Browse files Browse the repository at this point in the history
  • Loading branch information
luin authored Mar 16, 2024
1 parent beb02b8 commit d7d5ae5
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# [Unreleased]

- Include source maps for Parchment

# 2.0.0-rc.3

- Fix `Quill#getSemanticHTML()` for list items
Expand Down
33 changes: 33 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/quill/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"jsdom": "^22.1.0",
"mini-css-extract-plugin": "^2.7.6",
"prettier": "^3.0.3",
"source-map-loader": "^5.0.0",
"style-loader": "^3.3.3",
"stylus": "^0.62.0",
"stylus-loader": "^7.1.3",
Expand Down
8 changes: 7 additions & 1 deletion packages/quill/webpack.common.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ const tsRules = {
use: ['babel-loader'],
};

const sourceMapRules = {
test: /\.js$/,
enforce: 'pre',
use: ['source-map-loader'],
};

const svgRules = {
test: /\.svg$/,
include: [resolve(__dirname, 'src/assets/icons')],
Expand Down Expand Up @@ -53,7 +59,7 @@ module.exports = {
},
},
module: {
rules: [tsRules, stylRules, svgRules],
rules: [tsRules, stylRules, svgRules, sourceMapRules],
},
plugins: [
new MiniCssExtractPlugin({
Expand Down

0 comments on commit d7d5ae5

Please sign in to comment.