-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Added babel to build for ES2015, so older browsers are supported (…
- Loading branch information
Showing
5 changed files
with
2,900 additions
and
1,145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"env", | ||
{ | ||
"targets": { | ||
"ie": 11 | ||
}, | ||
"modules": false | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
import copy from 'rollup-plugin-copy'; | ||
import json from 'rollup-plugin-json' | ||
import json from 'rollup-plugin-json'; | ||
import babel from 'rollup-plugin-babel'; | ||
|
||
export default { | ||
name: 'videojsIma', | ||
input: 'src/ima-plugin.js', | ||
output: { | ||
file: 'dist/videojs.ima.js', | ||
format: 'umd' | ||
format: 'umd', | ||
}, | ||
external: ['video.js', 'videojs-contrib-ads'], | ||
globals: { | ||
'video.js': 'videojs' | ||
'video.js': 'videojs', | ||
}, | ||
plugins: [ | ||
json(), | ||
copy({ | ||
"src/css/videojs.ima.css": "dist/videojs.ima.css", | ||
}) | ||
] | ||
'src/css/videojs.ima.css': 'dist/videojs.ima.css', | ||
}), | ||
babel({ | ||
exclude: 'node_modules/**', | ||
}), | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
import copy from 'rollup-plugin-copy'; | ||
import json from 'rollup-plugin-json' | ||
import { minify } from 'uglify-es'; | ||
import json from 'rollup-plugin-json'; | ||
import {minify} from 'uglify-es'; | ||
import uglify from 'rollup-plugin-uglify'; | ||
import babel from 'rollup-plugin-babel'; | ||
|
||
export default { | ||
name: 'videojsIma', | ||
input: 'src/ima-plugin.js', | ||
output: { | ||
file: 'dist/videojs.ima.min.js', | ||
format: 'umd' | ||
format: 'umd', | ||
}, | ||
external: ['video.js', 'videojs-contrib-ads'], | ||
globals: { | ||
'video.js': 'videojs' | ||
'video.js': 'videojs', | ||
}, | ||
plugins: [ | ||
json(), | ||
babel({ | ||
exclude: 'node_modules/**', | ||
}), | ||
uglify({}, minify), | ||
copy({ | ||
"src/css/videojs.ima.css": "dist/videojs.ima.css", | ||
}) | ||
] | ||
'src/css/videojs.ima.css': 'dist/videojs.ima.css', | ||
}), | ||
], | ||
}; |
Oops, something went wrong.