Steps to reproduce
npm i
npx babel-node index.js
module.exports = { | |
ignore: [ | |
"/node_modules/**/*" | |
], | |
sourceMaps: true, | |
presets: [ | |
[ | |
"@babel/preset-env", | |
{ | |
"targets": { | |
"node": "12.4" | |
}, | |
} | |
], | |
], | |
plugins: [] | |
} |
import postmark from 'postmark'; | |
console.log(typeof postmark); | |
console.log(typeof require('postmark')); |
{ | |
"name": "test", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"dependencies": { | |
"@babel/core": "^7.4.5", | |
"@babel/node": "^7.4.5", | |
"@babel/preset-env": "^7.4.5", | |
"postmark": "^2.2.7" | |
}, | |
"devDependencies": {}, | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC" | |
} |