169 Star 1.1K Fork 282

GVPantv / L7

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.fatherrc.base.ts 685 Bytes
一键复制 编辑 原始数据 按行查看 历史
import { defineConfig } from 'father';
const isProduction = process.env.NODE_ENV === 'production';
export default defineConfig({
esm: {
output: 'es',
transformer: 'esbuild',
platform: 'browser',
},
cjs: isProduction
? {
output: 'lib',
transformer: 'esbuild',
platform: 'node',
}
: undefined,
extraBabelPlugins: [
[
// import glsl as raw text
'babel-plugin-inline-import',
{ extensions: ['.glsl'] },
],
// import css as inline
'transform-import-css-l7',
],
targets: { chrome: 51, node: 18 },
// more config see father docs https://github.com/umijs/father/blob/master/docs/config.md
});
TypeScript
1
https://gitee.com/antv/L7.git
git@gitee.com:antv/L7.git
antv
L7
L7
master

搜索帮助