From 9a279d4cc1ed98001edb818e784f8d9e2400e118 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Thu, 26 Sep 2019 22:10:47 +0200 Subject: [PATCH] support modern browsers --- package.json | 5 ++++- tsconfig.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9f5414a..0e6c884 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,15 @@ "main": "dist/index.js", "typings": "dist/index.d.ts", "scripts": { + "prepublishOnly": "tsc", "test": "parcel -d public ./test/index.html", "build": "tsc -w", "dev": "pnpm run build & pnpm run test" }, "browserslist": [ - "last 1 year" + "last 2 Chrome versions", + "last 2 Firefox versions", + "last 2 Safari versions" ], "devDependencies": { "@types/react": "^16.9.3", diff --git a/tsconfig.json b/tsconfig.json index 348bde8..98245cd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es5", + "target": "es2017", "module": "commonjs", "jsx": "react", "outDir": "./dist",