tslib
tslib copied to clipboard
Runtime library for TypeScript helpers.
Node native ESM spec is not applied and this is causing a lot of compatibility issues, when I use pure ESM, I have to enable `importHelpers: false` because `tslib`'s configuration...
Fixes #175 This restores array spreading for the following use case: ```js [..."foo"]; // ['f', 'o', 'o'] ``` @rbuckton @DanielRosenwasser @weswigham First time contributing to this project, so please let...
When building with tslib, I'm seeing the following on every build: ``` (node:40688) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package...
This adds default import interop compat when resolving using the `"module"` condition. Many users are still expecting `import tslib from 'tslib'` to work, since this is supported for the CommonJS...
When launching React Native app, I have a warning which says that tslib package is ignored : ``` warn Package tslib has been ignored because it contains invalid configuration. Reason:...
I am building an Electron app with TypeScript and setting my `target` to `ES2017` in my `tsconfig.json`. I am new to `tslib` and trying to figure out whether it can...
### Expected behavior No error occurs when `spreadArray` is used on a string containing an emoji/Unicode character. ### Current behavior When `spreadArray` is used on a string containing an emoji/Unicode...
Getting this error on a project with: - tslib 2.2.0 - typescript 4.2.4 - ts-loader 8.1.0 The error goes away on pinning the versions which I was using earlier: tslib...
tslib's package.json has a few issues RE detecting whether it's CJS or ESM. Due to lack of standards support, it has to be special-cased in a number of places, eg...
This moves the helpers out of `tslib.es6.js` and into `modules/index.js` so that ES Module imports don't depend on the CommonJS/UMD definitions. In addition, `tslib.es6.js` now just re-exports `modules/index.js` so that...