mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
esm target is built by esbuild so dependents don't need classProperties
This commit is contained in:
1
js/.gitignore
vendored
1
js/.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
node_modules
|
||||
index.js
|
||||
index.mjs
|
||||
|
||||
@@ -12,7 +12,9 @@
|
||||
],
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"build": "esbuild index.mjs --outfile=index.js --target=es2015 --global-name=pmtiles --format=iife"
|
||||
"build-iife": "esbuild index.src.mjs --outfile=index.js --target=es2015 --global-name=pmtiles --format=iife",
|
||||
"build-esm": "esbuild index.src.mjs --outfile=index.mjs --target=es6 --global-name=pmtiles --format=esm",
|
||||
"build":"npm run build-iife && npm run build-esm"
|
||||
},
|
||||
"homepage": "https://github.com/protomaps/pmtiles",
|
||||
"author": "Brandon Liu",
|
||||
|
||||
Reference in New Issue
Block a user