File tree 6 files changed +12
-4
lines changed
6 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ export default Base.extend({
31
31
async init ( el , opts ) {
32
32
await import ( "slick-carousel" ) ;
33
33
34
+ if ( window . __patternslib_import_styles ) {
35
+ import ( "slick-carousel/slick/slick.scss" ) ;
36
+ }
37
+
34
38
if ( el . jquery ) {
35
39
el = el [ 0 ] ;
36
40
}
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export default Base.extend({
66
66
67
67
const Pikaday = ( await import ( "pikaday" ) ) . default ;
68
68
if ( window . __patternslib_import_styles ) {
69
- await import ( "pikaday/scss/pikaday.scss" ) ;
69
+ import ( "pikaday/scss/pikaday.scss" ) ;
70
70
}
71
71
72
72
if ( el . getAttribute ( "type" ) === "date" ) {
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export default Base.extend({
35
35
36
36
const DatePicker = ( await import ( "../date-picker/date-picker" ) ) . default ;
37
37
if ( window . __patternslib_import_styles ) {
38
- await import ( "./_datetime-picker.scss" ) ;
38
+ import ( "./_datetime-picker.scss" ) ;
39
39
}
40
40
41
41
const value = this . el . value . split ( "T" ) ;
Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ export default Base.extend({
25
25
const PhotoSwipe = ( await import ( "photoswipe" ) ) . default ;
26
26
const PhotoSwipeUI = ( await import ( "photoswipe/dist/photoswipe-ui-default" ) ) . default ; // prettier-ignore
27
27
28
+ if ( window . __patternslib_import_styles ) {
29
+ import ( "photoswipe/dist/photoswipe.css" ) ;
30
+ }
31
+
28
32
this . options = parser . parse ( this . $el , opts ) ;
29
33
if ( $ ( "#photoswipe-template" ) . length === 0 ) {
30
34
const Template = ( await import ( "./template.html" ) ) . default ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export default Base.extend({
25
25
26
26
async init ( $el , opts , trigger ) {
27
27
if ( window . __patternslib_import_styles ) {
28
- await import ( "./_modal.scss" ) ;
28
+ import ( "./_modal.scss" ) ;
29
29
}
30
30
31
31
this . options = parser . parse ( this . $el , opts ) ;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export default Base.extend({
54
54
const Tippy = ( await import ( "tippy.js" ) ) . default ;
55
55
56
56
if ( window . __patternslib_import_styles ) {
57
- await import ( "tippy.js/dist/tippy.css" ) ;
57
+ import ( "tippy.js/dist/tippy.css" ) ;
58
58
}
59
59
60
60
this . options = parser . parse ( el , opts ) ;
You can’t perform that action at this time.
0 commit comments