chore: 修复 office-viewer 在gh-pages 里面的报错 (#6432)

This commit is contained in:
liaoxuezhi 2023-03-21 17:26:24 +08:00 committed by GitHub
parent 58342075a6
commit 7eb20c0a75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -118,9 +118,11 @@ fis.match('icons/**.svg', {
]
});
fis.match('/node_modules/**.js', {
isMod: true
fis.match('/node_modules/**.{js,cjs}', {
isMod: true,
rExt: 'js'
});
fis.set('project.fileType.text', 'cjs');
fis.match('tinymce/{tinymce.js,plugins/**.js,themes/silver/theme.js}', {
ignoreDependencies: true
@ -310,7 +312,7 @@ fis.hook('node_modules', {
});
fis.hook('commonjs', {
sourceMap: false,
extList: ['.js', '.jsx', '.tsx', '.ts'],
extList: ['.js', '.jsx', '.tsx', '.ts', '.cjs'],
paths: {
'monaco-editor': '/examples/loadMonacoEditor'
}

View File

@ -1,3 +1,4 @@
import Word from './Word';
export {Word};
export default {Word};