Tag: commonjs
node.js – Unable to run compiled TypeScript code due to “Cannot find module” error
Here’s my tsconfig.json configuration: { “compilerOptions”: { “target”: “es2016”, “lib”: [“es6”], “module”: “commonjs”, “rootDir”: “./”, “baseUrl”: “./”, “resolveJsonModule”: true, “allowJs”: true, “outDir”: “build”, “esModuleInterop”: true, “forceConsistentCasingInFileNames”: true, “strict”: false, “noImplicitAny”:…
node.js – how can I use webrtc in nodejs?
NPM package: webrtc.js (www.npmjs.com/package/webrtc)A helper for creating and managing WebRTC connections in a cross-browser sort of way. This is used in simplewebrtc.com which is what powers: talky.io It’s designed for…
Accepted node-rollup-plugin-commonjs 22.0.1+ds1-2 (source) into unstable
—–BEGIN PGP SIGNED MESSAGE—– Hash: SHA512 Format: 1.8 Date: Sat, 09 Jul 2022 12:56:38 +0200 Source: node-rollup-plugin-commonjs Architecture: source Version: 22.0.1+ds1-2 Distribution: unstable Urgency: medium Maintainer: Debian Javascript Maintainers <pkg-javascript-de…@lists.alioth.debian.org>…
Titanium: require a module inside a commonjs module
Here’s a blog post from Appcelerator talking about CommonJS modules: developer.appcelerator.com/blog/2011/12/commonjs-module-guide-for-1-8.html And here’s the guide / documentation from Appcelerator: wiki.appcelerator.org/display/guides/CommonJS+Modules+in+Titanium Right now, all module references are relative to the application…
Dynamic imports with module: “commonjs”
swc now supports transpiling dynamic imports to CommonJS: github.com/swc-project/swc/pull/1028 @swc-node/register however only sets the jsc.parser.dynamicImport option for ES2020 modules and newer. Using @swc-node/register leads to the following error: error: import(…)…