forked from joepie91/fix-esm
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
187 B
JavaScript
13 lines
187 B
JavaScript
3 years ago
|
"use strict";
|
||
|
|
||
|
require("..").register();
|
||
|
const pDefer = require("p-defer").default;
|
||
|
|
||
|
let { resolve, promise } = pDefer();
|
||
|
|
||
|
promise.then(() => {
|
||
|
console.log("It works!");
|
||
|
});
|
||
|
|
||
|
resolve();
|