Refine error messages.
[e-mobility-charging-stations-simulator.git] / src / charging-station / Worker.js
index db82e8215fd0dad8fca89da13431c36f3c5c195d..cc8358559c5ce29d4bbda526b8de402309203de6 100644 (file)
@@ -1,9 +1,9 @@
-const Configuration = require('../utils/Configuration');
-const EventEmitter = require('events');
-const {Worker} = require('worker_threads');
-const Pool = require('worker-threads-pool');
+import Configuration from '../utils/Configuration.js';
+import EventEmitter from 'events';
+import Pool from 'worker-threads-pool';
+import {Worker} from 'worker_threads';
 
-class Wrk {
+export default class Wrk {
   /**
    * Create a new `Wrk`.
    *
@@ -82,5 +82,3 @@ class Wrk {
     return this._startWorker();
   }
 }
-
-module.exports = Wrk;