diff options
author | Austin Morton <apmorton@users.noreply.github.com> | 2020-09-26 16:59:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-26 16:59:26 -0400 |
commit | 044dcfbf8885d0115e64cf75f74a0f40f54e2370 (patch) | |
tree | 1dcc3e27139600d8e85004dc2a840bb420ccc835 /lib/compilers/clean.js | |
parent | bac07fea6d2d4ed5fb7070c51e4cf3e56e3c155a (diff) | |
download | compiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.tar.gz compiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.zip |
Use ES6 Modules (#2132)
Diffstat (limited to 'lib/compilers/clean.js')
-rw-r--r-- | lib/compilers/clean.js | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/compilers/clean.js b/lib/compilers/clean.js index 477a19e04..dd998b655 100644 --- a/lib/compilers/clean.js +++ b/lib/compilers/clean.js @@ -22,13 +22,14 @@ // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. -const - BaseCompiler = require('../base-compiler'), - fs = require('fs-extra'), - path = require('path'), - utils = require('../utils'); +import path from 'path'; -class CleanCompiler extends BaseCompiler { +import fs from 'fs-extra'; + +import { BaseCompiler } from '../base-compiler'; +import * as utils from '../utils'; + +export class CleanCompiler extends BaseCompiler { static get key() { return 'clean'; } optionsForFilter(filters) { @@ -106,5 +107,3 @@ class CleanCompiler extends BaseCompiler { return result; } } - -module.exports = CleanCompiler; |