#!/bin/sh
set -e

echo "Test for rollup to be able to bundle a simple code which uses leaflet-hash"
echo ' 
	var map = L.map('mapid').setView([51.505, -0.09], 13);
	var hash = new L.Hash(map);
' > foo.js
rollup foo.js --output.file bundle.js --output.format cjs
rm -f ./bundle.js ./foo.js
