Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import.meta.resolve in config file #3027

Closed
vjpr opened this issue Jul 6, 2022 · 1 comment
Closed

import.meta.resolve in config file #3027

vjpr opened this issue Jul 6, 2022 · 1 comment

Comments

@vjpr
Copy link

vjpr commented Jul 6, 2022

Issue description or question

I am using import.meta.resolve in my config file.

This requires --experimental-import-meta-resolve to be used by the Node process that reads the config file. Can this be set?

@ArtemGovorov
Copy link
Member

There's no plugin UI for that, but you may create an .sh wrapper file (here's an example for an obsolete issue) that adds the --experimental-import-meta-resolve flag to node, and specify the path to the file as a path to node executable in your Run Configuration.

nodeWithImportMeta.sh

#!/bin/bash
node --experimental-import-meta-resolve "$@"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants