add minimal TS bundler

This commit is contained in:
Matteo Rosati
2026-02-11 15:15:27 +01:00
parent a3ef6cf84c
commit 787bdede87
8 changed files with 100 additions and 19 deletions

View File

@@ -1,16 +0,0 @@
/** @type {import('maplibre-gl')} */
const maplibregl = window.maplibregl;
var map = new maplibregl.Map({
container: "map",
style:
"https://api.maptiler.com/maps/019be805-c88e-7c8b-9850-bc704d72e604/style.json?key=8nmgHEIZQiIgqQj3RZNa",
center: [-74.5, 40],
zoom: 9,
});
map.on("load", () => {
navigator.geolocation.getCurrentPosition((position) => {
// map.panTo(...)
});
});

View File

@@ -0,0 +1,3 @@
export default function add(a: number, b: number): number {
return a + b;
}

View File

@@ -0,0 +1,3 @@
import add from "./lib/add";
console.log(add(1, 2));