aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/fortran.js
diff options
context:
space:
mode:
authorAustin Morton <apmorton@users.noreply.github.com>2020-09-26 16:59:26 -0400
committerGitHub <noreply@github.com>2020-09-26 16:59:26 -0400
commit044dcfbf8885d0115e64cf75f74a0f40f54e2370 (patch)
tree1dcc3e27139600d8e85004dc2a840bb420ccc835 /lib/compilers/fortran.js
parentbac07fea6d2d4ed5fb7070c51e4cf3e56e3c155a (diff)
downloadcompiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.tar.gz
compiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.zip
Use ES6 Modules (#2132)
Diffstat (limited to 'lib/compilers/fortran.js')
-rw-r--r--lib/compilers/fortran.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/compilers/fortran.js b/lib/compilers/fortran.js
index 54b3cba2f..92a8dda62 100644
--- a/lib/compilers/fortran.js
+++ b/lib/compilers/fortran.js
@@ -23,11 +23,12 @@
// 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'),
- path = require('path'),
- utils = require('../utils');
+import path from 'path';
-class FortranCompiler extends BaseCompiler {
+import { BaseCompiler } from '../base-compiler';
+import * as utils from '../utils';
+
+export class FortranCompiler extends BaseCompiler {
static get key() { return 'fortran'; }
async runCompiler(compiler, options, inputFilename, execOptions) {
@@ -46,5 +47,3 @@ class FortranCompiler extends BaseCompiler {
return result;
}
}
-
-module.exports = FortranCompiler;