Maybe you should explicitly attach '.js' to the import, e.g: `const loadConfigFile = require('rollup/dist/loadConfigFile.js') ` See the discussion regarding this issue over at rollup: https://github.com/rollup/rollup/pull/3896#issuecomment-739421156