Jack J. Woehr created NETBEANS-6319:
---------------------------------------
Summary: Editor flags javascript error on "return import(varname);"
Key: NETBEANS-6319
URL: https://issues.apache.org/jira/browse/NETBEANS-6319
Project: NetBeans
Issue Type: Bug
Components: javascript - Editor
Affects Versions: 12.6
Environment: Ubuntu 20.04.3
NetBeans 12.6
Reporter: Jack J. Woehr
Editor flags
{noformat}
return import(filepath);{noformat}
as an error in babel/core/lib/config/files/import .js
"Expected an operand but found import"
{code:javascript}
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = import_;
function import_(filepath) {
return import(filepath);
}
{code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists