support modern browsers

This commit is contained in:
cupcakearmy 2019-09-26 22:10:47 +02:00
parent 99bee43e14
commit 9a279d4cc1
2 changed files with 5 additions and 2 deletions

View File

@ -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",

View File

@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"target": "es2017",
"module": "commonjs",
"jsx": "react",
"outDir": "./dist",