You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
Please can this package be converted to use .js rather than using .mjs? You might need to provide both .mjs/.js as this package will be used in other projects?
Is there a reason why you didn't opt for the standard import {IdleQueue} from 'idlize' syntax?
Having said that, I'm looking forward to using this (and blogging about it) on the work we're doing to increase performance on our site. Great work.
Thanks,
The text was updated successfully, but these errors were encountered:
Sorry for the late reply -- I received this when I was on vacation, and I'm just now seeing it.
It's unfortunate that TypeScript doesn't support .mjs (most tools already do), but I don't think the right solution is to change back to using .js. If everyone did that then TS (and all other tools for that matter) would have no incentive to change, and no progress would ever be made.
I think the best path forward is to let these tools know that they're not compatible with libraries you want to use, and if enough people do that then TS will surely add support.
Is there a reason why you didn't opt for the standard import {IdleQueue} from 'idlize' syntax?
This is actually non-standard syntax, it's node-specific syntax. To use ES modules in browsers you have to supply a full URL.
Hi,
I've been attempting to use this package, but as the files are
.mjs
, angular/typescript are unable to use them, we get the following errors:We are using Angular 6 (Typescript).
Please can this package be converted to use
.js
rather than using.mjs
? You might need to provide both .mjs/.js as this package will be used in other projects?Is there a reason why you didn't opt for the standard
import {IdleQueue} from 'idlize'
syntax?Having said that, I'm looking forward to using this (and blogging about it) on the work we're doing to increase performance on our site. Great work.
Thanks,
The text was updated successfully, but these errors were encountered: