mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
chore: 修复 office-viewer 在gh-pages 里面的报错 (#6432)
This commit is contained in:
parent
58342075a6
commit
7eb20c0a75
@ -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'
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
import Word from './Word';
|
||||
|
||||
export {Word};
|
||||
export default {Word};
|
||||
|
Loading…
Reference in New Issue
Block a user