if(isRelative(source))thrownewError(`Could not resolve '${source}' from ${module.id}`);
this.onwarn(`Treating '${source}' as external dependency`);
this.onwarn(`'${source}' is imported by ${relativeId(module.id)}, but could not be resolved – treating it as an external dependency. For help see https://github.com/rollup/rollup/wiki/Troubleshooting#treating-module-as-external-dependency`);
`'path' is imported by main.js, but could not be resolved – treating it as an external dependency. For help see https://github.com/rollup/rollup/wiki/Troubleshooting#treating-module-as-external-dependency`
`'path' is imported by main.js, but could not be resolved – treating it as an external dependency. For help see https://github.com/rollup/rollup/wiki/Troubleshooting#treating-module-as-external-dependency`
@ -2,10 +2,10 @@ var assert = require( 'assert' );
module.exports={
description:'does not hang on missing module (#53)',
options:{
onwarn:function(msg){
assert.equal("Treating 'unlessYouCreatedThisFileForSomeReason' as external dependency",msg);
}
warnings:warnings=>{
assert.deepEqual(warnings,[
`'unlessYouCreatedThisFileForSomeReason' is imported by main.js, but could not be resolved – treating it as an external dependency. For help see https://github.com/rollup/rollup/wiki/Troubleshooting#treating-module-as-external-dependency`
`'external' is imported by main.js, but could not be resolved – treating it as an external dependency. For help see https://github.com/rollup/rollup/wiki/Troubleshooting#treating-module-as-external-dependency`,
`'unused', 'notused' and 'neverused' are imported from external module 'external' but never used`,