From 6e7381bc20b9152b51ce5cef2fbc0601c1e90d05 Mon Sep 17 00:00:00 2001 From: Takashi Tamura Date: Thu, 23 Nov 2023 09:21:34 +0900 Subject: [PATCH] Fix examples/webpack/README.md. The `.mjs` extension is necessary. Close #17319 --- examples/webpack/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/webpack/README.md b/examples/webpack/README.md index 1df9d47d18452..1a19d0bb9831c 100644 --- a/examples/webpack/README.md +++ b/examples/webpack/README.md @@ -27,7 +27,7 @@ otherwise the build is not guaranteed to work correctly. ## Worker loading If you are getting the `Setting up fake worker` warning, make sure you are -importing `pdfjs-dist/webpack` which is the zero-configuration method for +importing `pdfjs-dist/webpack.mjs` which is the zero-configuration method for Webpack users. Installing `worker-loader` is no longer necessary. - import * as pdfjsLib from 'pdfjs-dist/webpack'; + import * as pdfjsLib from 'pdfjs-dist/webpack.mjs';