feat: add l7-three father umd build config (#1361)

* fix: 修复 featureScale 错误

* style: lint style

* fix: remove featureScalePlugin async

* feat: add l7-three father/umd

* feat: remove depecenied lib

Co-authored-by: shihui <yiqianyao.yqy@alibaba-inc.com>
This commit is contained in:
YiQianYao 2022-09-29 11:45:37 +08:00 committed by GitHub
parent 7fcbb6e9fe
commit d491784c26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 8 deletions

View File

@ -6,6 +6,13 @@ export default {
cjs: {
output:'lib'
},
umd: {
output: 'dist',
externals: {
"@antv/l7": "L7",
"three": "Three"
},
},
autoprefixer: {
browsers: ['IE 11', 'last 2 versions'],
},

View File

@ -11,7 +11,7 @@
"license": "ISC",
"main": "lib/index.js",
"module": "es/index.js",
"unpkg": "dist/l7-tree.js",
"unpkg": "dist/l7-three.min.js",
"types": "es/index.d.ts",
"directories": {
"lib": "lib",
@ -44,9 +44,7 @@
},
"homepage": "https://github.com/antvis/L7#readme",
"dependencies": {
"@antv/l7-core": "2.9.29",
"@antv/l7-layers": "2.9.29",
"@antv/l7-scene": "2.9.29",
"@antv/l7": "2.9.29",
"@babel/runtime": "^7.7.7",
"inversify": "^5.0.1",
"reflect-metadata": "^0.1.13",

View File

@ -1,5 +1,4 @@
import { ILayer, IMercator, ISourceCFG } from '@antv/l7-core';
import { BaseLayer } from '@antv/l7-layers';
import { ILayer, IMercator, ISourceCFG, BaseLayer } from '@antv/l7';
import {
AnimationMixer,
Matrix4,

View File

@ -1,4 +1,4 @@
import { Scene } from '@antv/l7-scene';
import { Scene } from '@antv/l7';
import {
IThreeRenderService,
ThreeRenderService,

View File

@ -1,4 +1,4 @@
import { IMapService, IMercator, IRendererService, TYPES } from '@antv/l7-core';
import { IMapService, IMercator, IRendererService, TYPES } from '@antv/l7';
import { inject, injectable } from 'inversify';
import 'reflect-metadata';