File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 91
91
"source-map-loader" : " ~0.1.5" ,
92
92
"sourcemap-istanbul-instrumenter-loader" : " ~0.2.0" ,
93
93
"standard-version" : " ~3.0.0" ,
94
+ "string-replace-loader" : " ~1.0.5" ,
94
95
"style-loader" : " ~0.13.0" ,
95
96
"stylelint" : " ~7.3.1" ,
96
97
"stylelint-config-standard" : " ~13.0.0" ,
126
127
"dependencies" : {
127
128
"@ng-bootstrap/ng-bootstrap" : " ^1.0.0-alpha.0" ,
128
129
"@types/date-fns" : " 0.0.2" ,
129
- "calendar-utils" : " 0.0.30 " ,
130
+ "calendar-utils" : " 0.0.31 " ,
130
131
"date-fns" : " ^1.3.0"
131
132
}
132
133
}
Original file line number Diff line number Diff line change @@ -70,6 +70,16 @@ module.exports = {
70
70
enforce : 'pre' ,
71
71
test : / n g \- b o o t s t r a p \/ u t i l \/ p o s i t i o n i n g / ,
72
72
loader : 'source-map-loader'
73
+ } , {
74
+ enforce : 'pre' ,
75
+ test : / \. t s $ / ,
76
+ exclude : / n o d e _ m o d u l e s / ,
77
+ loader : 'string-replace-loader' ,
78
+ options : {
79
+ search : `import (\\w+) from \\'date\\-fns\\/` , // nasty fix for umd build to work
80
+ replace : 'import * as $1 from \'date-fns/' ,
81
+ flags : 'g'
82
+ }
73
83
} , {
74
84
test : / \. t s $ / ,
75
85
loader : 'awesome-typescript-loader' ,
You can’t perform that action at this time.
0 commit comments