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", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",
"scripts": { "scripts": {
"prepublishOnly": "tsc",
"test": "parcel -d public ./test/index.html", "test": "parcel -d public ./test/index.html",
"build": "tsc -w", "build": "tsc -w",
"dev": "pnpm run build & pnpm run test" "dev": "pnpm run build & pnpm run test"
}, },
"browserslist": [ "browserslist": [
"last 1 year" "last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Safari versions"
], ],
"devDependencies": { "devDependencies": {
"@types/react": "^16.9.3", "@types/react": "^16.9.3",

View File

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