-
### Summary
Hello,
I truly believe that the use of Nim as a language for JavaScript is hindered by the fact that strong typing becomes complicated when importing native JavaScript functions. Dyn…
-
### Description
Works (primitive type):
```nim
proc env*[T](fn: int, bar: T): int
{. importjs: "(#).bind(#)" .}
```
Fails to compile:
```nim
proc env*[T](fn: proc(), bar: T): proc()
{. importj…
turbo updated
10 months ago
-
In a project with a package.json that specifies
```
...
"type": "module"
...
```
...and using a ".importjs.js" file, then this error happens
```
Unable to parse configuration file. Reas…
-
I'm trying to get ImportJS to automatically import Lodash for me. Here's what my config looks like:
```
module.exports = {
aliases: {
_: "lodash",
},
danglingCommas: false,
maxLin…
-
I have my project set up to use the smart pipeline operator via the `babel/plugin-proposal-pipeline-operator` plugin. When I'm in a file using this operator, importjs fails to import my modules with a…
-
Importjs will not works whenever I used this kind of syntax for omitting array value
```
const [, b] = [1, 2];
```
-
Brace for craziness.
Chrome released official support for import maps on March 1. There's a polyfill enabling this in all browsers which have support for ES modules. It would be awesome if importjs…
-
When there was a file b.js containing ```export * from 'a'``` and I add a new variable ```const someVariable = 123``` in a file a.js, then in a third file if I want to import the ```someVariable``` im…
-
At my company, we've standardized on using double quotes for most strings. ImportJS imports files using single strings. Is there a setting I could flip to get it to import with double quotes instead?
…
-
I'm using d3 in a file and previously had code like this:
```
import * as d3 from "d3"
d3.select("svg")....
```
After running `importjs rewrite --overwrite `, my file looks like:
```
d3…