@rollup/plugin-typescript
Advanced tools
Comparing version 4.1.1 to 4.1.2
# @rollup/plugin-typescript ChangeLog | ||
## v4.1.2 | ||
_2020-05-20_ | ||
### Bugfixes | ||
- fix: memory leak. fixes #322 (#352) | ||
### Updates | ||
- docs: update readme examples (#391) | ||
- docs: update link to @rollup/plugin-babel in README.md (#372) | ||
## v4.1.1 | ||
@@ -4,0 +17,0 @@ |
@@ -466,10 +466,13 @@ import { resolve, dirname, relative, win32, posix } from 'path'; | ||
emitParsedOptionsErrors(ts, this, parsedOptions); | ||
program = createWatchProgram(ts, this, { | ||
formatHost, | ||
resolveModule, | ||
parsedOptions, | ||
writeFile(fileName, data) { | ||
emittedFiles.set(fileName, data); | ||
} | ||
}); | ||
// Fixes a memory leak https://github.com/rollup/plugins/issues/322 | ||
if (!program) { | ||
program = createWatchProgram(ts, this, { | ||
formatHost, | ||
resolveModule, | ||
parsedOptions, | ||
writeFile(fileName, data) { | ||
emittedFiles.set(fileName, data); | ||
} | ||
}); | ||
} | ||
}, | ||
@@ -511,3 +514,3 @@ buildEnd() { | ||
generateBundle(outputOptions) { | ||
parsedOptions.fileNames.forEach(fileName => { | ||
parsedOptions.fileNames.forEach((fileName) => { | ||
const output = findTypescriptOutput(ts, parsedOptions, fileName, emittedFiles); | ||
@@ -514,0 +517,0 @@ output.declarations.forEach((id) => { |
@@ -470,10 +470,13 @@ 'use strict'; | ||
emitParsedOptionsErrors(ts, this, parsedOptions); | ||
program = createWatchProgram(ts, this, { | ||
formatHost, | ||
resolveModule, | ||
parsedOptions, | ||
writeFile(fileName, data) { | ||
emittedFiles.set(fileName, data); | ||
} | ||
}); | ||
// Fixes a memory leak https://github.com/rollup/plugins/issues/322 | ||
if (!program) { | ||
program = createWatchProgram(ts, this, { | ||
formatHost, | ||
resolveModule, | ||
parsedOptions, | ||
writeFile(fileName, data) { | ||
emittedFiles.set(fileName, data); | ||
} | ||
}); | ||
} | ||
}, | ||
@@ -515,3 +518,3 @@ buildEnd() { | ||
generateBundle(outputOptions) { | ||
parsedOptions.fileNames.forEach(fileName => { | ||
parsedOptions.fileNames.forEach((fileName) => { | ||
const output = findTypescriptOutput(ts, parsedOptions, fileName, emittedFiles); | ||
@@ -518,0 +521,0 @@ output.declarations.forEach((id) => { |
{ | ||
"name": "@rollup/plugin-typescript", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -30,3 +30,3 @@ [npm]: https://img.shields.io/npm/v/@rollup/plugin-typescript | ||
See [rollup-plugin-babel](https://github.com/rollup/rollup-plugin-babel). | ||
See [@rollup/plugin-babel](https://github.com/rollup/plugins/tree/master/packages/babel). | ||
@@ -148,4 +148,4 @@ ## Usage | ||
// rollup.config.js | ||
import typescript from 'rollup-plugin-typescript'; | ||
import commonjs from 'rollup-plugin-commonjs'; | ||
import typescript from '@rollup/plugin-typescript'; | ||
import commonjs from '@rollup/plugin-commonjs'; | ||
@@ -180,3 +180,3 @@ export default { | ||
import jsx from 'acorn-jsx'; | ||
import typescript from 'rollup-plugin-typescript'; | ||
import typescript from '@rollup/plugin-typescript'; | ||
@@ -183,0 +183,0 @@ export default { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64430
1087