UNPKG

whaler

Version:

Define and run multi-container applications with Docker

14 lines (12 loc) 395 B
'use strict'; const Module = require('module'); if (!Module.prototype.import) { Module.prototype.import = function (id) { return import(Module._resolveFilename(id, this, false)).catch(err => { if ('ERR_UNKNOWN_FILE_EXTENSION' == err.code) { return Promise.resolve({ default: this.require(id) }); } throw err; }); }; }