mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: 修复 office-viewer 的 esm 没有 external echarts 问题
This commit is contained in:
parent
b427168b67
commit
e926d41256
@ -62,7 +62,7 @@
|
||||
"moment": "^2.19.4",
|
||||
"moment-timezone": "^0.5.34",
|
||||
"mpegts.js": "^1.6.10",
|
||||
"office-viewer": "^0.3.13",
|
||||
"office-viewer": "^0.3.14",
|
||||
"prop-types": "^15.6.1",
|
||||
"qrcode.react": "^3.1.0",
|
||||
"react-cropper": "^2.1.8",
|
||||
@ -244,4 +244,4 @@
|
||||
"react-dom": ">=16.8.6"
|
||||
},
|
||||
"gitHead": "37d23b4a8eb1c663bc38e8dd9040889ea1526ec4"
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "office-viewer",
|
||||
"version": "0.3.13",
|
||||
"version": "0.3.14",
|
||||
"description": "office 文档在线预览",
|
||||
"main": "lib/index.js",
|
||||
"module": "esm/index.js",
|
||||
@ -119,4 +119,4 @@
|
||||
"printBasicPrototype": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -3,7 +3,7 @@ import commonjs from '@rollup/plugin-commonjs';
|
||||
import json from '@rollup/plugin-json';
|
||||
import resolve from '@rollup/plugin-node-resolve';
|
||||
import typescript from '@rollup/plugin-typescript';
|
||||
import {main, module, dependencies} from './package.json';
|
||||
import {main, module, dependencies, peerDependencies} from './package.json';
|
||||
import path from 'path';
|
||||
|
||||
const settings = {
|
||||
@ -12,7 +12,7 @@ const settings = {
|
||||
|
||||
const external = id =>
|
||||
new RegExp(
|
||||
`^(?:${Object.keys(dependencies)
|
||||
`^(?:${Object.keys({...dependencies, ...peerDependencies})
|
||||
.concat([])
|
||||
.map(value =>
|
||||
value.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&').replace(/-/g, '\\x2d')
|
||||
|
Loading…
Reference in New Issue
Block a user