forked from github-mirror/twing
Output ESM
This commit is contained in:
parent
072585dd02
commit
7a4eb468d6
@ -33,7 +33,7 @@
|
||||
"build:cjs": "rimraf dist/cjs && tsc --project src/main --module commonjs --outDir dist/cjs",
|
||||
"build:test": "rimraf dist && tsc --project src/test --outDir dist",
|
||||
"build:types": "rimraf dist/types && tsc --project src/main --declaration true --emitDeclarationOnly true --outDir dist/types",
|
||||
"bundle": "esbuild src/main/lib.ts --bundle --minify --metafile=dist/meta.json --outfile=dist/lib.min.js",
|
||||
"bundle": "esbuild src/main/lib.ts --bundle --minify --metafile=dist/meta.json --format=esm --outfile=dist/lib.min.js",
|
||||
"bundle:types": "npx dts-bundle-generator --external-inlines source-map --external-inlines twig-lexer -o dist/lib.min.d.ts src/main/lib.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
|
Loading…
Reference in New Issue
Block a user