File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 32
32
{
33
33
"camelCaseSvgKeywords": true
34
34
}
35
- ]
35
+ ]
36
36
}
37
37
}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const BUNDLE = process.env.BUNDLE === 'true'
10
10
const ESM = process . env . ESM === 'true'
11
11
12
12
let fileDest = `coreui${ ESM ? '.esm' : '' } `
13
- const external = [ '@popperjs/core' ]
13
+ const external = [ '@popperjs/core' , 'date-fns' ]
14
14
const plugins = [
15
15
babel ( {
16
16
// Only transpile our source code
@@ -20,14 +20,18 @@ const plugins = [
20
20
} )
21
21
]
22
22
const globals = {
23
- '@popperjs/core' : 'Popper'
23
+ '@popperjs/core' : 'Popper' ,
24
+ 'date-fns' : 'dateFns'
24
25
}
25
26
26
27
if ( BUNDLE ) {
27
28
fileDest += '.bundle'
28
29
// Remove last entry in external array to bundle Popper
29
30
external . pop ( )
30
31
delete globals [ '@popperjs/core' ]
32
+ // Remove last entry in external array to bundle dateFns
33
+ external . pop ( )
34
+ delete globals [ 'date-fns' ]
31
35
plugins . push (
32
36
replace ( {
33
37
'process.env.NODE_ENV' : '"production"' ,
You can’t perform that action at this time.
0 commit comments