網絡暴民 Jacky's BLOG https://jacky.seezone.net
use '@bundled-es-modules/pdfjs-dist' in vite:
import Pdfjs from '@bundled-es-modules/pdfjs-dist/build/pdf';
Pdfjs.GlobalWorkerOptions.workerSrc =
'../node_modules/@bundled-es-modules/pdfjs-dist/build/pdf.worker.js';
喜欢我的文章吗?
别忘了给点支持与赞赏,让我知道创作的路上有你陪伴。
发布评论…