1 | import { nodeResolve } from '@rollup/plugin-node-resolve';
|
2 | import terser from '@rollup/plugin-terser';
|
3 |
|
4 | export default [{
|
5 | input: './lib/browser.js',
|
6 | plugins: [
|
7 | nodeResolve({ browser: true })
|
8 | ],
|
9 | output: [{
|
10 | file: './dist/shp.js',
|
11 | format: 'umd',
|
12 | name: 'shp'
|
13 | }, {
|
14 | file: './dist/shp.min.js',
|
15 | format: 'umd',
|
16 | name: 'shp',
|
17 | plugins: [terser()]
|
18 | }]
|
19 | }, {
|
20 | input: './lib/index.js',
|
21 | plugins: [
|
22 | nodeResolve({ browser: true })
|
23 | ],
|
24 | output: [{
|
25 | file: './dist/shp.esm.js',
|
26 | format: 'esm'
|
27 | }, {
|
28 | file: './dist/shp.esm.min.js',
|
29 | format: 'esm',
|
30 | plugins: [terser()]
|
31 | }]
|
32 | }] |
\ | No newline at end of file |