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/zig.js | |
parent | bac07fea6d2d4ed5fb7070c51e4cf3e56e3c155a (diff) | |
download | compiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.tar.gz compiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.zip |
Use ES6 Modules (#2132)
Diffstat (limited to 'lib/compilers/zig.js')
-rw-r--r-- | lib/compilers/zig.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/compilers/zig.js b/lib/compilers/zig.js index c7d2bb4a7..35115581b 100644 --- a/lib/compilers/zig.js +++ b/lib/compilers/zig.js @@ -22,12 +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'), - _ = require('underscore'), - path = require('path'), - Semver = require('semver'); +import path from 'path'; -class ZigCompiler extends BaseCompiler { +import Semver from 'semver'; +import _ from 'underscore'; + +import { BaseCompiler } from '../base-compiler'; + +export class ZigCompiler extends BaseCompiler { static get key() { return 'zig'; } constructor(info, env) { @@ -102,5 +104,3 @@ class ZigCompiler extends BaseCompiler { return true; } } - -module.exports = ZigCompiler; |