-
Notifications
You must be signed in to change notification settings - Fork 379
Migrate to Shakapacker 9.0.0-beta.7 with Babel transpiler #662
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
Changes from 7 commits
67d625b
ce2ad19
a863bb9
3f9f720
5905fa9
a4f7dc5
57bb979
c3ed3ac
d6fa4d4
da0c7f5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -101,7 +101,8 @@ class CommentForm extends BaseComponent { | |||||
| } | ||||||
|
|
||||||
| formHorizontal() { | ||||||
| const { formatMessage } = this.props.intl; | ||||||
| const { intl } = this.props; | ||||||
| const { formatMessage } = intl; | ||||||
|
||||||
| return ( | ||||||
| <div> | ||||||
| <hr /> | ||||||
|
|
@@ -156,7 +157,8 @@ class CommentForm extends BaseComponent { | |||||
| } | ||||||
|
|
||||||
| formStacked() { | ||||||
| const { formatMessage } = this.props.intl; | ||||||
| const { intl } = this.props; | ||||||
| const { formatMessage } = intl; | ||||||
|
||||||
| return ( | ||||||
| <div> | ||||||
| <hr /> | ||||||
|
|
@@ -211,7 +213,8 @@ class CommentForm extends BaseComponent { | |||||
|
|
||||||
| // Head up! We have some CSS modules going on here with the className props below. | ||||||
| formInline() { | ||||||
| const { formatMessage } = this.props.intl; | ||||||
| const { intl } = this.props; | ||||||
| const { formatMessage } = intl; | ||||||
|
||||||
| return ( | ||||||
| <div> | ||||||
| <hr /> | ||||||
|
|
@@ -314,7 +317,8 @@ class CommentForm extends BaseComponent { | |||||
| throw new Error(`Unknown form mode: ${this.state.formMode}.`); | ||||||
| } | ||||||
|
|
||||||
| const { formatMessage } = this.props.intl; | ||||||
| const { intl } = this.props; | ||||||
| const { formatMessage } = intl; | ||||||
|
||||||
| const { formatMessage } = intl; | |
| const { formatMessage } = intl || {}; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8263,13 +8263,14 @@ [email protected]: | |
| resolved "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" | ||
| integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== | ||
|
|
||
| shakapacker@8.2.0: | ||
| version "8.2.0" | ||
| resolved "https://registry.npmjs.org/shakapacker/-/shakapacker-8.2.0.tgz#c7bed87b8be2ae565cfe616f68552be545c77e14" | ||
| integrity sha512-Ct7BFqJVnKbxdqCzG+ja7Q6LPt/PlB7sSVBfG5jsAvmVCADM05cuoNwEgYNjFGKbDzHAxUqy5XgoI9Y030+JKQ== | ||
| shakapacker@9.0.0-beta.7: | ||
| version "9.0.0-beta.7" | ||
| resolved "https://registry.npmjs.org/shakapacker/-/shakapacker-9.0.0-beta.7.tgz#c00b9590b84f365bf0fd4e7b7efdd59104901a00" | ||
| integrity sha512-m4xGyTg9yy4ys+wz44jBdygsxwKDbARBlgYqsyirwowQKWZHqnyb+ucS9yz5cKQHUtHeDlJOhPHKhRsCwhJcDQ== | ||
| dependencies: | ||
| js-yaml "^4.1.0" | ||
| path-complete-extname "^1.0.0" | ||
| webpack-merge "^5.8.0" | ||
|
|
||
| shallow-clone@^3.0.0: | ||
| version "3.0.1" | ||
|
|
@@ -9204,7 +9205,7 @@ webpack-dev-server@^4.11.1: | |
| webpack-dev-middleware "^5.3.4" | ||
| ws "^8.13.0" | ||
|
|
||
| webpack-merge@5, webpack-merge@^5.7.3: | ||
| webpack-merge@5, webpack-merge@^5.7.3, webpack-merge@^5.8.0: | ||
| version "5.10.0" | ||
| resolved "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.10.0.tgz#a3ad5d773241e9c682803abf628d4cd62b8a4177" | ||
| integrity sha512-+4zXKdx7UnO+1jaN4l2lHVD+mFvnlZQP/6ljaJVb4SZiwIKeUnrT5l0gkT8z+n4hKpC+jpOv6O9R+gLtag7pSA== | ||
|
|
||
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.
Potential runtime error if
intlprop is undefined during SSR. Consider adding a null check:const { formatMessage } = intl || {};or guard against undefined intl.