Advertisement
brandizzi

Tentando usar um módulo ES6 em CommonJS

Nov 23rd, 2022
1,303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const pmap = require('p-map');
  2.  
  3. exports.importer = () => {
  4.   console.log('Yes, I could import p-map:', pmap);
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement