Open FluorescentHallucinogen opened 1 year ago
As far as I understand, there is no any config file for JSPM CLI like .jspmrc
. Right?
These are excellent points, thanks for putting some thought to this.
In general, JSPM detects configurations from the existing import map file, including handling of whitespace and the provider and environment.
We don't currently define a .jspmrc
, but this is something we could introduce for the CLI and extension by supporting it in the generator project.
I tend to agree that might well be the best approach here. Would you be interested in working on this as a feature at https://github.com/jspm/generator?
I wouldn't mind working on adding support for .jspmrc
. But that would require agreeing on the format of that file.
In general, JSPM detects configurations from the existing import map file, including handling of whitespace and the provider and environment.
I think in 50% of the use cases of this extension, the import map isn't there yet. I mean users who are using the VSCode extension to create import map for the first time. :)
I've started working on a pull request for VSCode extension that adds additional prompts to existing ones (which provider to use, whether to use es-module-shims, etc.).
But I'm blocked by #17. @guybedford Could you please take a look?
First of all, thank you very much for such useful extension!
Is it possible to configure it? If so, how? Could you please document this?
How to configure the extension to:
node_modules
instead of jspm.io CDN?es-module-shims
?<!-- Generated by @jspm/generator VSCode Extension - https://github.com/jspm/jspm-vscode -->
comment?