1 // Throws an error if a JSAN import is reached without being filtered by the loader
2 module.exports = function(import_text) {
3 throw_err(this,import_text);
6 module.exports.pitch = function(import_text) {
7 throw_err(this,import_text);
10 function throw_err(loader,import_text){
11 var callback = loader.async();
12 var message = "Incorrectly included legacy code. (`"+import_text+"`) use ";
13 message += "(`import \""+loader.resourcePath+"\";` or `require(\""+loader.resourcePath+"\");`)";
14 callback(Error(message), null);