Skip to content

Commit

Permalink
Add webpack chunk name
Browse files Browse the repository at this point in the history
  • Loading branch information
jimchamp committed Dec 13, 2021
1 parent 7e4df2e commit c1c8eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openlibrary/plugins/openlibrary/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ jQuery(function () {
// Prevent default star rating behavior:
const ratingForms = document.querySelectorAll('.star-rating-form')
if (ratingForms) {
import('./handlers')
import(/* webpackChunkName: "star-ratings" */'./handlers')
.then((module) => module.initRatingHandlers(ratingForms));
}
});

0 comments on commit c1c8eb2

Please sign in to comment.