"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "build/rollup-config.js" between
Leaflet-1.8.0.tar.gz and Leaflet-1.9.0.tar.gz

About: Leaflet is a JavaScript library for mobile-friendly interactive maps.

rollup-config.js  (Leaflet-1.8.0):rollup-config.js  (Leaflet-1.9.0)
skipping to change at line 15 skipping to change at line 15
import gitRev from 'git-rev-sync'; import gitRev from 'git-rev-sync';
import pkg from '../package.json'; import pkg from '../package.json';
import {createBanner} from './banner'; import {createBanner} from './banner';
const release = process.env.NODE_ENV === 'release'; const release = process.env.NODE_ENV === 'release';
const watch = process.argv.indexOf('-w') > -1 || process.argv.indexOf('--watch') > -1; const watch = process.argv.indexOf('-w') > -1 || process.argv.indexOf('--watch') > -1;
// Skip the git branch+rev in the banner when doing a release build // Skip the git branch+rev in the banner when doing a release build
const version = release ? pkg.version : `${pkg.version}+${gitRev.branch()}.${git Rev.short()}`; const version = release ? pkg.version : `${pkg.version}+${gitRev.branch()}.${git Rev.short()}`;
const banner = createBanner(version); const banner = createBanner(version);
const outro = `var oldL = window.L;
exports.noConflict = function() {
window.L = oldL;
return this;
}
// Always export us to window global (see #2364)
window.L = exports;`;
/** @type {import('rollup').RollupOptions} */ /** @type {import('rollup').RollupOptions} */
const config = { const config = {
input: 'src/Leaflet.js', input: 'src/LeafletWithGlobals.js',
output: [ output: [
{ {
file: pkg.main, file: pkg.main,
format: 'umd', format: 'umd',
name: 'leaflet', name: 'leaflet',
banner: banner, banner: banner,
outro: outro,
sourcemap: true, sourcemap: true,
freeze: false, freeze: false,
esModule: false esModule: false
} }
], ],
plugins: [ plugins: [
release ? json() : rollupGitVersion() release ? json() : rollupGitVersion()
] ]
}; };
if (!watch) { if (!watch) {
config.output.push( config.output.push(
{ {
file: 'dist/leaflet-src.esm.js', file: pkg.module,
format: 'es', format: 'es',
banner: banner, banner: banner,
sourcemap: true, sourcemap: true,
freeze: false freeze: false
} }
); );
} }
export default config; export default config;
 End of changes. 4 change blocks. 
11 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)