python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
CommonJS to ES6 migration exports. to export
I'm migrating a Nativescript project from version 6.8 to 8.1. This involves converting modules from CommonJS to ES6, which is mostly just converting function exports, so that
exports.foo = function(a...
David
Votes: 0
Answers: 1
Top level await not working in ECMAScript
I am rather confused as I have read that top level await is supported in ESM but when I try it out in a html file it does not work?
Were I found that is says:
Top-level await does not work with node 1...
Jalrux
Votes: 0
Answers: 1
Import a JavaScript file into another JavaScript file that is imported into another file
I need to import a file that imports code from another file and then import that file into a final file that adds code to an HTML button. How can I do this? When I try with the following example below...
Jalrux
Votes: 0
Answers: 1
importing hybrid package in react native/typescript/expo
I'm trying to import the library fp-ts-std but my import fails.
The readme refers to conditional exports, that is:
the library exports 2 versions. More thoroughly explained here.
One for cjs in fp-ts...
Simon
Votes: 0
Answers: 0