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 3232 {
3333 "camelCaseSvgKeywords": true
3434 }
35- ]
35+ ]
3636 }
3737}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const BUNDLE = process.env.BUNDLE === 'true'
1010const ESM = process . env . ESM === 'true'
1111
1212let fileDest = `coreui${ ESM ? '.esm' : '' } `
13- const external = [ '@popperjs/core' ]
13+ const external = [ '@popperjs/core' , 'date-fns' ]
1414const plugins = [
1515 babel ( {
1616 // Only transpile our source code
@@ -20,14 +20,18 @@ const plugins = [
2020 } )
2121]
2222const globals = {
23- '@popperjs/core' : 'Popper'
23+ '@popperjs/core' : 'Popper' ,
24+ 'date-fns' : 'dateFns'
2425}
2526
2627if ( BUNDLE ) {
2728 fileDest += '.bundle'
2829 // Remove last entry in external array to bundle Popper
2930 external . pop ( )
3031 delete globals [ '@popperjs/core' ]
32+ // Remove last entry in external array to bundle dateFns
33+ external . pop ( )
34+ delete globals [ 'date-fns' ]
3135 plugins . push (
3236 replace ( {
3337 'process.env.NODE_ENV' : '"production"' ,
You can’t perform that action at this time.
0 commit comments