mirror of
https://github.com/ethan-zf/cesium-plot-js.git
synced 2025-06-23 19:17:29 +00:00
add alias
This commit is contained in:
parent
247f401203
commit
252dbf4bcc
@ -1,6 +1,6 @@
|
||||
import Draw from '../draw';
|
||||
import * as Utils from '../utils';
|
||||
import { Cartesian3 } from '../../examples/cesium';
|
||||
import { Cartesian3 } from '@examples/cesium';
|
||||
|
||||
export default class FineArrow extends Draw {
|
||||
points: Cartesian3[] = [];
|
||||
|
@ -1,5 +1,5 @@
|
||||
import * as Utils from './utils';
|
||||
import * as CesiumTypeOnly from '../examples/cesium';
|
||||
import * as CesiumTypeOnly from '@examples/cesium';
|
||||
import { State } from './interface';
|
||||
|
||||
export default class Draw {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import { resolve } from 'path';
|
||||
import path from 'path';
|
||||
|
||||
export default defineConfig(({ mode }) => {
|
||||
let config = {};
|
||||
@ -20,12 +20,19 @@ export default defineConfig(({ mode }) => {
|
||||
config = {
|
||||
build: {
|
||||
lib: {
|
||||
entry: resolve(__dirname, 'src/index.ts'),
|
||||
entry: path.resolve(__dirname, 'src/index.ts'),
|
||||
name: 'CesiumPlot',
|
||||
fileName: 'CesiumPlot',
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
config.resolve = {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, 'src'),
|
||||
'@examples': path.resolve(__dirname, './examples'),
|
||||
},
|
||||
};
|
||||
return config;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user