-
-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: update outdated react url #817
Conversation
@@ -20,7 +20,6 @@ const butternut = require("butternut"); | |||
|
|||
const ASSETS_DIR = path.join(__dirname, "benchmark_cache"); | |||
const DEFAULT_ASSETS = { | |||
"react.js": "https://unpkg.com/react/dist/react.js", // 120 kb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we would like to keep react as a dep here since we use it for smoke tests.
So please update with the new URL instead of removing it. You can find the relevant code here https://unpkg.com/react@16.3.1/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vigneshshanmugam should i update it with react.development.js
or react.production.js
??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use development.js
scripts/benchmark.js
Outdated
@@ -20,7 +20,7 @@ const butternut = require("butternut"); | |||
|
|||
const ASSETS_DIR = path.join(__dirname, "benchmark_cache"); | |||
const DEFAULT_ASSETS = { | |||
"react.js": "https://unpkg.com/react/dist/react.js", // 120 kb | |||
"react.js":"https://unpkg.com/react@16.3.1/umd/react.development.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- lint issue, add space before.
- add no of bytes at the end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vigneshshanmugam i made required changes.sorry for the delay
Thanks @ganes1410 |
fixes #816
The above image shows the script successfully running.