@file-viewer/vite-plugin 3.3.1 → 3.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1693,17 +1693,16 @@ async function copyKnownRendererAssets(targetRoot, rendererIds) {
|
|
|
1693
1693
|
? { sourcePackage: '@file-viewer/ppt', sourceVersion: pptVersion || undefined }
|
|
1694
1694
|
: undefined;
|
|
1695
1695
|
for (const [id, filename] of [
|
|
1696
|
-
['ppt-module', '
|
|
1697
|
-
['ppt-worker', 'worker.
|
|
1698
|
-
['ppt-
|
|
1699
|
-
['ppt-
|
|
1700
|
-
['ppt-
|
|
1701
|
-
['ppt-
|
|
1702
|
-
['ppt-
|
|
1703
|
-
['ppt-
|
|
1704
|
-
['ppt-notice', 'NOTICE']
|
|
1696
|
+
['ppt-module', 'dist/pptjs.mjs'],
|
|
1697
|
+
['ppt-worker', 'dist/pptjs.worker.js'],
|
|
1698
|
+
['ppt-runtime-dist', 'dist'],
|
|
1699
|
+
['ppt-runtime-manifest', 'dist/manifest.json'],
|
|
1700
|
+
['ppt-runtime-package', 'package.json'],
|
|
1701
|
+
['ppt-runtime-license', 'LICENSE'],
|
|
1702
|
+
['ppt-runtime-notice', 'NOTICE.md'],
|
|
1703
|
+
['ppt-runtime-readme', 'README.md']
|
|
1705
1704
|
]) {
|
|
1706
|
-
await push('office-presentation-binary', id, join(targetRoot, `vendor/ppt/${filename}`), () => copyFileIfPresent(pptRoot ? join(pptRoot, filename) : null, join(targetRoot, `vendor/ppt/${filename}`)), undefined, pptSource);
|
|
1705
|
+
await push('office-presentation-binary', id, join(targetRoot, `vendor/ppt/${filename}`), () => (filename === 'dist' ? copyDirectoryIfPresent : copyFileIfPresent)(pptRoot ? join(pptRoot, filename) : null, join(targetRoot, `vendor/ppt/${filename}`)), undefined, pptSource);
|
|
1707
1706
|
}
|
|
1708
1707
|
const docxRoot = resolvePackageRoot('@file-viewer/docx', ['@file-viewer/renderer-word']);
|
|
1709
1708
|
await push('office-word-openxml', 'docx-worker', join(targetRoot, 'vendor/docx/docx.worker.js'), () => copyFileIfPresent(docxRoot ? join(docxRoot, 'dist/docx-preview.worker.js') : null, join(targetRoot, 'vendor/docx/docx.worker.js')));
|
package/package.json
CHANGED