mirror of
https://github.com/iv-org/videojs-quality-selector.git
synced 2025-07-22 06:38:51 -04:00
refactor: use es6 classes
Adds babel and uses es6 classes instead of class.extend
This commit is contained in:
parent
9c44e09096
commit
03c63eae66
13 changed files with 4554 additions and 550 deletions
23
Gruntfile.js
23
Gruntfile.js
|
@ -2,9 +2,6 @@
|
|||
* Copyright (c) 2017 Jeremy Thomerson
|
||||
* Licensed under the MIT license.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var path = require('path'),
|
||||
getCodeVersion = require('silvermine-serverless-utils/src/get-code-version');
|
||||
|
||||
|
@ -52,6 +49,26 @@ module.exports = function(grunt) {
|
|||
main: {
|
||||
src: config.js.standalone,
|
||||
dest: config.dist.js.bundle,
|
||||
options: {
|
||||
transform: [
|
||||
[
|
||||
'babelify',
|
||||
{
|
||||
presets: [
|
||||
[
|
||||
'@babel/preset-env',
|
||||
{
|
||||
debug: true,
|
||||
useBuiltIns: 'usage',
|
||||
shippedProposals: true,
|
||||
corejs: 3,
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue