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", "name": "utils",
"version": "2.2.16", "version": "2.2.17",
"description": "Some helpful utility classes and functions", "description": "Some helpful utility classes and functions",
"author": "Fabian Stamm <dev@fabianstamm.de>", "author": "Fabian Stamm <dev@fabianstamm.de>",
"contributors": [], "contributors": [],

8
package-lock.json generated
View File

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

View File

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

View File

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