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