File tree Expand file tree Collapse file tree 4 files changed +9
-0
lines changed
Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,14 @@ module.exports = {
44 '@babel/preset-env' ,
55 {
66 'targets' : {
7+ ie : 11 ,
8+ ie : 10 ,
79 'browsers' : [
810 "> 1%" ,
911 "IE 10"
1012 ]
1113 } ,
14+ useBuiltIns : 'usage' ,
1215 loose : true ,
1316 modules : false ,
1417 exclude : [ 'transform-typeof-symbol' ]
Original file line number Diff line number Diff line change 33const path = require ( 'path' )
44const babel = require ( 'rollup-plugin-babel' )
55const resolve = require ( 'rollup-plugin-node-resolve' )
6+ const commonjs = require ( 'rollup-plugin-commonjs' )
67
78const pkg = require ( path . resolve ( __dirname , '../package.json' ) )
89const BUNDLE = process . env . BUNDLE === 'true'
@@ -11,6 +12,8 @@ const year = new Date().getFullYear()
1112let fileDest = 'coreui.js'
1213const external = [ 'jquery' , 'perfect-scrollbar' ]
1314const plugins = [
15+ resolve ( ) ,
16+ commonjs ( ) ,
1417 babel ( {
1518 exclude : 'node_modules/**' , // Only transpile our source code
1619 externalHelpersWhitelist : [ // Include only required helpers
@@ -41,6 +44,7 @@ module.exports = {
4144 * Copyright ${ year } ${ pkg . author . name }
4245 * Licensed under MIT (${ pkg . homepage } )
4346 */` ,
47+ sourcemap : true ,
4448 file : path . resolve ( __dirname , `../dist/js/${ fileDest } ` ) ,
4549 format : 'umd' ,
4650 globals,
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ const year = new Date().getFullYear()
1010
1111let fileDest = 'coreui-utilities.js'
1212const plugins = [
13+ resolve ( ) ,
1314 babel ( {
1415 exclude : 'node_modules/**' , // Only transpile our source code
1516 externalHelpersWhitelist : [ // Include only required helpers
Original file line number Diff line number Diff line change 9999 "rimraf" : " ^2.6.2" ,
100100 "rollup" : " ^0.66.6" ,
101101 "rollup-plugin-babel" : " ^4.0.3" ,
102+ "rollup-plugin-commonjs" : " ^9.2.0" ,
102103 "rollup-plugin-node-resolve" : " ^3.4.0" ,
103104 "semver" : " ^5.6.0" ,
104105 "shelljs" : " ^0.8.2" ,
You can’t perform that action at this time.
0 commit comments