I just joined a new project and stumbled upon the following JavaScript export syntax (global export with alias):
export * as actions from './Something.actions.js';
The syntax seems to be working, but I've never seen it before and it is marked as an error in visual studio code. Is it a valid syntax ? Can someone explain why vscode thinks this syntax is incorrect?


This is currently an experimental syntax (stage 1), supported via Babel but not supported natively in visual studio code at the moment.
For more information:
https://github.com/tc39/proposal-export-ns-from
https://github.com/Microsoft/vscode/issues/45139
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With