feat: pdfjs worker 增加默认值配置

This commit is contained in:
yupeng12 2024-07-05 15:23:04 +08:00
parent 900cb29c07
commit dcac3de529
3 changed files with 5 additions and 1 deletions

View File

@ -249,6 +249,7 @@ export function embed(
richTextToken: '',
affixOffsetBottom: 0,
customStyleClassPrefix: '.amis-scope',
pdfjsWorkerSrc: '/sdk/thirds/pdfjs-dist/build/pdf.worker.min.mjs',
...env
};

View File

@ -147,7 +147,7 @@ fis.match('/node_modules/**.{js,cjs}', {
rExt: 'js'
});
fis.match('pdfjs-dist/**.mjs', {
fis.match('pdfjs-dist/**/pdf.mjs', {
isMod: true,
rExt: 'js',
parser: fis.plugin('typescript', {

View File

@ -25,6 +25,9 @@ rm -rf sdk && ../../node_modules/.bin/fis3 release publish-sdk -c -f ../../fis-c
cp -r ../../node_modules/monaco-editor/min/vs/base/browser sdk/thirds/monaco-editor/min/vs/base
#pdfjs worker js
cp -r ../../node_modules/pdfjs-dist/build/pdf.worker.min.mjs sdk/thirds/pdfjs-dist/build/pdf.worker.min.mjs
echo "===postcss ie11==="
# 生成去掉变量的 css动画设置为零
echo ':root { --animation-duration: 0s;}' >>sdk/ie11-patch.css