4 Star 2 Fork 2

even_jie/jesium

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
rollup.config.js 788 Bytes
一键复制 编辑 原始数据 按行查看 历史
even_jie 提交于 2023-02-24 19:07 . [feat] 打包报错了,回去在搞
import json from "rollup-plugin-json";
import typescript from "rollup-plugin-typescript2";
import sourceMaps from "rollup-plugin-sourcemaps";
import polyfillNode from "rollup-plugin-polyfill-node"
import nodeResolve from "@rollup/plugin-node-resolve"
const libraryName = 'Jesium'
export default {
input: "modules/index.ts",
output: [
{ format: "es", file: 'lib/main.esm.js' },
{ format: "umd", file: 'lib/main.umd.js', name: libraryName },
],
plugins: [
json(),
typescript({
exclude: ["node_modules/**", "src/**"],
typescript: require("typescript"),
useTsconfigDeclarationDir: true
}),
sourceMaps(),
polyfillNode(
{exclude: ["node_modules/**", "src/**"],}
),
nodeResolve()
],
external: ["cesium", "@turf/turf"]
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/anonymousjie/jesium.git
git@gitee.com:anonymousjie/jesium.git
anonymousjie
jesium
jesium
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385