Include the full build in the ol package

This commit is contained in:
Tim Schaub
2022-08-28 13:02:23 -05:00
parent 96ffd4113f
commit 219fb093c1
5 changed files with 35 additions and 10 deletions
+20
View File
@@ -0,0 +1,20 @@
import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
export default {
input: 'build/index.js',
output: {
name: 'ol',
format: 'umd',
exports: 'default',
file: 'build/full/ol.js',
globals: {
geotiff: 'geotiff',
},
},
plugins: [
resolve({moduleDirectories: ['build', 'node_modules']}),
commonjs(),
],
external: ['geotiff'],
};