Making esmodule more compatible with browsers

This commit is contained in:
Fabian Stamm 2020-11-11 21:13:26 +01:00
parent d0e8a97e4c
commit cb060c6399
4 changed files with 10 additions and 8 deletions

View File

@ -1,6 +1,6 @@
{
"name": "utils",
"version": "2.2.16",
"version": "2.2.17",
"description": "Some helpful utility classes and functions",
"author": "Fabian Stamm <dev@fabianstamm.de>",
"contributors": [],

8
package-lock.json generated
View File

@ -1,13 +1,13 @@
{
"name": "@hibas123/utils",
"version": "2.2.11",
"version": "2.2.17",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"typescript": {
"version": "4.0.3",
"resolved": "https://npm.hibas123.de/typescript/-/typescript-4.0.3.tgz",
"integrity": "sha512-tEu6DGxGgRJPb/mVPIZ48e69xCn2yRmCgYmDugAVwmJ6o+0u1RI18eO7E7WBTLYLaEVVOhwQmcdhQHweux/WPg==",
"version": "4.0.5",
"resolved": "https://npm.hibas123.de/typescript/-/typescript-4.0.5.tgz",
"integrity": "sha512-ywmr/VrTVCmNTJ6iV2LwIrfG1P+lv6luD8sUJs+2eI9NLGigaN+nUQc13iHqisq7bra9lnmUSYqbJvegraBOPQ==",
"dev": true
}
}

View File

@ -1,6 +1,6 @@
{
"name": "@hibas123/utils",
"version": "2.2.16",
"version": "2.2.17",
"description": "Different Utilities, that are not worth own packages",
"main": "lib/index.js",
"types": "lib/index.d.ts",
@ -18,7 +18,7 @@
"type": "git"
},
"devDependencies": {
"typescript": "^4.0.3"
"typescript": "^4.0.5"
},
"files": [
"src/",

View File

@ -3,6 +3,8 @@
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "classic",
"outDir": "esm"
"outDir": "esm",
"target": "es2015",
"lib": ["ES2018.AsyncIterable", "ES2015", "DOM"]
}
}