Skip to content

Releases: wessberg/rollup-plugin-ts

v1.3.3

23 Aug 18:07
Compare
Choose a tag to compare
  • fix(declarations): don't throw for JSDocDeprecatedTags. Closes #111 4adb49d

v1.3.2...v1.3.3

v1.3.2

05 Aug 19:42
Compare
Choose a tag to compare
  • chore(build): update dependencies e47e1dc

v1.3.1...v1.3.2

v1.3.1

31 Jul 11:37
Compare
Choose a tag to compare
  • fix(allowJs): don't attempt to include .mjs files in a TypeScript program to align with tsc behavior. Fixes #106 f567d6c

v1.3.0...v1.3.1

v1.3.0

31 Jul 10:02
Compare
Choose a tag to compare

Bug fixes

  • fix(external): respect 'external' option provided to Rollup and don't inline typings from modules matched by it 06f453a

Breaking Changes

Previously, the external option you provided to Rollup as part of your config was ignored by rollup-plugin-ts. Instead, it had internal rules for deciding whether or not to inline typings from imported modules or not based on things like whether they originate from external libraries. This could cause issues in complex scenarios combining TypeScript project references with tools like Lerna.

Going forward, just like Rollup, rollup-plugin-ts will respect the external option and leave imports be if they are matched by it.

For example, if your code looks like this:

// is path mapped to "@some/package/src/index.ts"
import {Foo} from "@some/package";

and your Rollup config looks like this:

{
    // ...
    external: ["@some/package"]
    // ...
}

Then the import will be left alone, rather than inlined. This follows the conventions of Rollup.
This probably won't affect you unless you are doing complex path mapping with TypeScript project references and symlinking.

v1.2.34...v1.3.0

v1.2.34

29 Jul 23:27
Compare
Choose a tag to compare
  • fix(hook): fix declarationPaths type signature b8d6e7e

v1.2.33...v1.2.34

v1.2.33

29 Jul 22:51
Compare
Choose a tag to compare
  • feat(hook): add 'declarationStats' hook. Documentation can be found here. Fixes #92 bcb7084

v1.2.32...v1.2.33

v1.2.32

29 Jul 20:16
Compare
Choose a tag to compare
  • fix: ensure that includedSourceFiles are always empty when allowDuplicate: true is passed as an option to includeSourceFile in moduleMerger. Fixes #90 796b92a

v1.2.31...v1.2.32

v1.2.31

28 Jul 23:37
Compare
Choose a tag to compare
  • fix(cache): invalidate cached Programs if SourceFiles are added while they are being generated. Closes #83 d1e9777

v1.2.30...v1.2.31

v1.2.30

28 Jul 19:59
Compare
Choose a tag to compare

Bug Fixes

Breaking Changes

Previously, if you provided inlined babel options, the plugin would use only them and force Babel to not search for any other config files based on your options. This theoretically makes sense in situations where you want to bypass searching for a config file on desk and instead provide the options directly. However, this is not how Babel is designed to operate. Going forward, inlined babel options will be combined with those that can be resolved, as is the way Babel normally works. This means that you can now provide things like rootMode as a Babel option, and it will actually work as expected:

{
    plugins: [
        // ...
        ts({
          transpiler: "babel",
          babelConfig: {
              // Any babel options go here
              rootMode: "upward"
          }
        })
    ]
}

If you want to instruct Babel to bypass searching for a babel config on desk altogether (such that you get the old behavior), provide configFile: false and/or babelrc: false as Babel config options:

{
    plugins: [
        // ...
        ts({
          transpiler: "babel",
          babelConfig: {
              // Explicitly tell Babel that it shouldn't look for other Babel configs to combine with these options
              configFile: false,
              babelrc: false
          }
        })
    ]
}

v1.2.29

28 Jul 07:32
Compare
Choose a tag to compare
  • fix(comments): improve bundling and tree-shaking of comments. Fixes #104 559c420
  • fix: declarations are sometimes empty. Closes #105 0e41f7c

v1.2.28...v1.2.29