exceedsystem / vscode-macros

This extension gives the macro features to your vscode.
https://marketplace.visualstudio.com/items?itemName=EXCEEDSYSTEM.vscode-macros
MIT License
41 stars 2 forks source link

Allow ECMAScript module syntax #10

Open BurtHarris opened 2 years ago

BurtHarris commented 2 years ago

It would be a good idea to permit ECMA-style import and export statement in macro files

BurtHarris commented 2 years ago

I may be on the track of this one, using require() vs. include() in the extension.

BurtHarris commented 2 years ago

Hmm. If someone wants to write their macros using the ECMA module syntax, they may need to name the javascript in a .mjs file. Based on what I read, CommonJS modules can import ECMA modules, but not the other way around.