We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Node.js allows for imports like this:
import test from 'node:test'; const { createHmac } = await import('node:crypto'); const EventEmitter = require('node:events'); const fs = require('node:fs');
For some builtin modules, it's the required syntax:
This module is only available under the node: scheme. The following will not work: import test from 'test';
This module is only available under the node: scheme. The following will not work:
import test from 'test';
HyperClick doesn't recognize node modules starting with "node:".
I've worked around this issue using these HyperClick settings:
// ... "regexes": [ "^import\\s+['\"](.+)['\"];?$", ".*from\\s+['\"](?:node:)?(.+)['\"];?$", ".*require\\(['\"`](.+?)['\"`]\\).*", ".*import\\((?:\\/\\*.+?\\*\\/\\s+)?['\"`](?:node:)?(.+)['\"`]\\)(?:[;\\.,])?" ], // ...
However, I don't think that the regex is the correct place to parse out the "node:" prefix.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Node.js allows for imports like this:
For some builtin modules, it's the required syntax:
HyperClick doesn't recognize node modules starting with "node:".
I've worked around this issue using these HyperClick settings:
However, I don't think that the regex is the correct place to parse out the "node:" prefix.
The text was updated successfully, but these errors were encountered: