File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @libresign/vue-pdf-editor" ,
3
3
"description" : " vue2 pdf editor component" ,
4
- "version" : " 1.3.6 " ,
4
+ "version" : " 1.3.7 " ,
5
5
"author" : " LibreCode" ,
6
6
"private" : false ,
7
7
"main" : " dist/vue-pdf-editor.umd.js" ,
Original file line number Diff line number Diff line change 1
1
import { getDocument , GlobalWorkerOptions } from 'pdfjs-dist'
2
- import pdfWorkerCode from 'pdfjs-dist/legacy/ build/pdf.worker.min.mjs'
2
+ import pdfWorkerCode from 'pdfjs-dist/build/pdf.worker.min.mjs'
3
3
4
- if ( ! GlobalWorkerOptions . workerSrc ) {
5
- GlobalWorkerOptions . workerSrc = pdfWorkerCode
6
- }
4
+ GlobalWorkerOptions . workerSrc = pdfWorkerCode
7
5
8
6
/**
9
7
*
Original file line number Diff line number Diff line change @@ -29,11 +29,14 @@ module.exports = defineConfig({
29
29
transpileDependencies : true ,
30
30
configureWebpack :{
31
31
module : {
32
- rules : [
33
- {
34
- test : / p d f \. w o r k e r ( \. m i n ) ? \. m j s $ / ,
35
- type : 'asset/resource'
36
- } ,
32
+ rules : [
33
+ {
34
+ test : / p d f \. w o r k e r ( \. m i n ) ? \. m j s $ / ,
35
+ type : 'asset/resource' ,
36
+ generator : {
37
+ filename : '[name][ext]' ,
38
+ } ,
39
+ } ,
37
40
{
38
41
test :/ \. j s $ / ,
39
42
loader : 'babel-loader'
You can’t perform that action at this time.
0 commit comments