Open remexre opened 8 years ago
Okay, it works if I replace the format with something valid (in my case, umd
and then adding a moduleId
), uncomment everything, and comment out all export
statements from src/editor/editor.js
. So... exporting might be broken instead?
If I do the following, it reports the error that I need to use moduleName
instead of moduleId
:
diff --git a/index.js b/index.js
index b0f5f46..91a13a6 100644
--- a/index.js
+++ b/index.js
@@ -49,7 +49,7 @@ module.exports = function(options) {
file.sourceMap = map;
}
callback(null, file);
- }, function(err) {
+ }).catch(function(err) {
setImmediate(function() {
callback(new PluginError(PLUGIN_NAME, err));
});