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/index.js | |
parent | bac07fea6d2d4ed5fb7070c51e4cf3e56e3c155a (diff) | |
download | compiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.tar.gz compiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.zip |
Use ES6 Modules (#2132)
Diffstat (limited to 'lib/compilers/index.js')
-rw-r--r-- | lib/compilers/index.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/compilers/index.js b/lib/compilers/index.js index 3da4214c5..e33e540eb 100644 --- a/lib/compilers/index.js +++ b/lib/compilers/index.js @@ -1,6 +1,7 @@ -const makeKeyedTypeGetter = require('../keyed-type').makeKeyedTypeGetter; -const all = require('./_all'); +import { makeKeyedTypeGetter } from '../keyed-type'; -module.exports = { - getCompilerTypeByKey: makeKeyedTypeGetter('compiler', all), -}; +import * as all from './_all'; + +export * from './_all'; + +export const getCompilerTypeByKey = makeKeyedTypeGetter('compiler', all); |