22 lines
451 B
JavaScript
22 lines
451 B
JavaScript
|
|
import resolve from 'rollup-plugin-node-resolve';
|
||
|
|
import babel from 'rollup-plugin-babel';
|
||
|
|
|
||
|
|
export default {
|
||
|
|
entry: 'src/L.PolylineDecorator.js',
|
||
|
|
dest: 'dist/leaflet.polylineDecorator.js',
|
||
|
|
format: 'umd',
|
||
|
|
external: ['leaflet'],
|
||
|
|
globals: {
|
||
|
|
leaflet: 'L'
|
||
|
|
},
|
||
|
|
plugins: [
|
||
|
|
resolve(),
|
||
|
|
babel({
|
||
|
|
babelrc: false,
|
||
|
|
exclude: 'node_modules/**',
|
||
|
|
presets: ['es2015-rollup'],
|
||
|
|
plugins: ['external-helpers']
|
||
|
|
})
|
||
|
|
],
|
||
|
|
};
|