Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

javascript modules : "export * as" in visual studio code

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?

enter image description here

enter image description here

like image 368
Fab313 Avatar asked Jun 14 '26 00:06

Fab313


1 Answers

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

like image 58
Fab313 Avatar answered Jun 16 '26 14:06

Fab313