Skip to content

Commit 385af17

Browse files
Update Webpack to support jspdf upgrade (#10812)
* Update Webpack to support jspdf upgrade Signed-off-by: Suchit Sahoo <[email protected]> * Changeset file for PR #10812 created/updated --------- Signed-off-by: Suchit Sahoo <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
1 parent 3401851 commit 385af17

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

changelogs/fragments/10812.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
chore:
2+
- Update Webpack for jspdf upgrade ([#10812](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/10812))

packages/osd-optimizer/src/worker/webpack.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,12 @@ export function getWebpackConfig(bundle: Bundle, bundleRefs: BundleRefs, worker:
268268
},
269269
{
270270
test: /\.m?js$/,
271-
include: [/node_modules[\\/]@dagrejs/, /node_modules[\\/]@xyflow/],
271+
include: [
272+
/node_modules[\\/]@dagrejs/,
273+
/node_modules[\\/]@xyflow/,
274+
/node_modules[\\/]fast-png/,
275+
/node_modules[\\/]iobuffer/,
276+
],
272277
use: {
273278
loader: 'babel-loader',
274279
options: {

0 commit comments

Comments
 (0)