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 = {
4
4
'@babel/preset-env' ,
5
5
{
6
6
'targets' : {
7
+ ie : 11 ,
8
+ ie : 10 ,
7
9
'browsers' : [
8
10
"> 1%" ,
9
11
"IE 10"
10
12
]
11
13
} ,
14
+ useBuiltIns : 'usage' ,
12
15
loose : true ,
13
16
modules : false ,
14
17
exclude : [ 'transform-typeof-symbol' ]
Original file line number Diff line number Diff line change 3
3
const path = require ( 'path' )
4
4
const babel = require ( 'rollup-plugin-babel' )
5
5
const resolve = require ( 'rollup-plugin-node-resolve' )
6
+ const commonjs = require ( 'rollup-plugin-commonjs' )
6
7
7
8
const pkg = require ( path . resolve ( __dirname , '../package.json' ) )
8
9
const BUNDLE = process . env . BUNDLE === 'true'
@@ -11,6 +12,8 @@ const year = new Date().getFullYear()
11
12
let fileDest = 'coreui.js'
12
13
const external = [ 'jquery' , 'perfect-scrollbar' ]
13
14
const plugins = [
15
+ resolve ( ) ,
16
+ commonjs ( ) ,
14
17
babel ( {
15
18
exclude : 'node_modules/**' , // Only transpile our source code
16
19
externalHelpersWhitelist : [ // Include only required helpers
@@ -41,6 +44,7 @@ module.exports = {
41
44
* Copyright ${ year } ${ pkg . author . name }
42
45
* Licensed under MIT (${ pkg . homepage } )
43
46
*/` ,
47
+ sourcemap : true ,
44
48
file : path . resolve ( __dirname , `../dist/js/${ fileDest } ` ) ,
45
49
format : 'umd' ,
46
50
globals,
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ const year = new Date().getFullYear()
10
10
11
11
let fileDest = 'coreui-utilities.js'
12
12
const plugins = [
13
+ resolve ( ) ,
13
14
babel ( {
14
15
exclude : 'node_modules/**' , // Only transpile our source code
15
16
externalHelpersWhitelist : [ // Include only required helpers
Original file line number Diff line number Diff line change 99
99
"rimraf" : " ^2.6.2" ,
100
100
"rollup" : " ^0.66.6" ,
101
101
"rollup-plugin-babel" : " ^4.0.3" ,
102
+ "rollup-plugin-commonjs" : " ^9.2.0" ,
102
103
"rollup-plugin-node-resolve" : " ^3.4.0" ,
103
104
"semver" : " ^5.6.0" ,
104
105
"shelljs" : " ^0.8.2" ,
You can’t perform that action at this time.
0 commit comments