Request to change the name of default importmap from node.importmap
to importmap.json
#29
Labels
good first issue
Good for newcomers
There is a little bit of disconnect between the
cli
and using thenode-loader
.When we generate an importmap using
jspm-cli
. It creates an importmap usingimportmap.json
as a default name.https://github.com/jspm/jspm-cli/blob/b938c175ae040bd8af96a2e60179c4f9c837e008/src/utils.ts#L11
But the
@jspm/node-importmap-loader
expects the default file to benode.importmap
https://github.com/jspm/node-importmap-http-loader/blob/main/src/config.ts#L21
So, when users create a new map using the cli. They have two options.
importmap.json
tonode.importmap
. Since the loader doesn't accept the file-name to be passed as an argument as of now.--output node.importmap
to avoid manual step.This creates a little friction and users need to remember about the file name mis-match. To avoid this, the node loader should use
importmap.json
by default. Sincecli
is much used and impact more changes there.Task
importmap.json
importmap.json
The text was updated successfully, but these errors were encountered: