UNPKG

esri-leaflet

Version:

Leaflet plugins for consuming ArcGIS Online and ArcGIS Server services.

29 lines (26 loc) 767 B
import json from 'rollup-plugin-json'; import nodeResolve from 'rollup-plugin-node-resolve'; var pkg = require('../package.json'); var copyright = '/* ' + pkg.name + ' - v' + pkg.version + ' - ' + new Date().toString() + '\n' + ' * Copyright (c) ' + new Date().getFullYear() + ' Environmental Systems Research Institute, Inc.\n' + ' * ' + pkg.license + ' */'; export default { entry: 'src/EsriLeaflet.js', moduleName: 'L.esri', format: 'umd', external: ['leaflet', 'esri-leaflet'], plugins: [ nodeResolve({ jsnext: true, main: false, browser: false, extensions: [ '.js', '.json' ] }), json() ], globals: { 'leaflet': 'L', 'esri-leaflet': 'L.esri' }, banner: copyright };