thrownewError(`Missing or malformed package.json: ${modulePath}`);
}
constmain=pkg['jsnext:main'];
if(!main){
thrownewError(`Package ${id} does not have a jsnext:main field, and so cannot be included in your rollup. Try adding it as an external module instead (e.g. options.external = ['${id}']). See https://github.com/rollup/rollup/wiki/jsnext:main for more info`);
thrownewError(`Package ${id}(imported by ${importer}) does not have a jsnext:main field, and so cannot be included in your rollup. Try adding it as an external module instead (e.g. options.external = ['${id}']). See https://github.com/rollup/rollup/wiki/jsnext:main for more info`);