-
-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #329 from gregnb/fix-arrow-functions-in-build
Ensure we target ES5 when building in webpack, add browserslist
- Loading branch information
Showing
7 changed files
with
432 additions
and
579 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Browsers that we support | ||
|
||
defaults | ||
IE11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "react-to-print", | ||
"version": "2.12.0", | ||
"version": "2.12.1", | ||
"description": "Print React components in the browser", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
|
@@ -25,7 +25,7 @@ | |
], | ||
"author": "gregnb <[email protected]>", | ||
"contributors": [ | ||
"Matthew Herbst" | ||
"Matthew Herbst <MatthewHerbst.com>" | ||
], | ||
"license": "MIT", | ||
"bugs": { | ||
|
@@ -42,22 +42,22 @@ | |
"devDependencies": { | ||
"@types/react": "^17.0.0", | ||
"@types/react-dom": "^17.0.0", | ||
"@typescript-eslint/eslint-plugin": "^4.8.2", | ||
"@typescript-eslint/parser": "^4.8.2", | ||
"@typescript-eslint/eslint-plugin": "^4.10.0", | ||
"@typescript-eslint/parser": "^4.10.0", | ||
"acorn": "^8.0.4", | ||
"clean-webpack-plugin": "^3.0.0", | ||
"css-loader": "^5.0.1", | ||
"eslint": "^7.14.0", | ||
"eslint": "^7.15.0", | ||
"html-webpack-plugin": "^4.5.0", | ||
"husky": "^4.3.0", | ||
"lint-staged": "^10.5.2", | ||
"husky": "^4.3.6", | ||
"lint-staged": "^10.5.3", | ||
"react": "^17.0.1", | ||
"react-dom": "^17.0.1", | ||
"style-loader": "^2.0.0", | ||
"ts-loader": "^8.0.11", | ||
"typescript": "^4.1.2", | ||
"ts-loader": "^8.0.12", | ||
"typescript": "^4.1.3", | ||
"url-loader": "^4.1.1", | ||
"webpack": "^5.8.0", | ||
"webpack": "^5.10.1", | ||
"webpack-cli": "^4.2.0", | ||
"webpack-dev-server": "^3.11.0" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,6 @@ | |
"noUnusedParameters": true, | ||
"sourceMap": true, | ||
"strict": true, | ||
"target": "es5" | ||
"target": "ES5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters