You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Typescript with Browserslist example](#typescript-with-browserslist-example)
104
105
-[Typescript, Babel, and Browserslist example](#typescript-babel-and-browserslist-example)
106
+
-[Typescript, Babel, and Browserslist example with mixed transpilers](#typescript-babel-and-browserslist-example-with-mixed-transpilers)
105
107
-[Typescript, swc, and Browserslist example](#typescript-swc-and-browserslist-example)
108
+
-[Typescript, swc, and Browserslist example with mixed transpilers](#typescript-swc-and-browserslist-example-with-mixed-transpilers)
106
109
-[Pure Typescript with Custom Transformers](#pure-typescript-with-custom-transformers)
107
110
-[Advanced example of using Typescript, Babel, and Browserslists together](#advanced-example-of-using-typescript-babel-and-browserslists-together)
108
111
-[Passing a specific TypeScript version](#passing-a-specific-typescript-version)
@@ -405,7 +408,7 @@ By default, some combination of options will be applied depending on the config
405
408
406
409
### Mixing transpilers
407
410
408
-
By default, the transpiler you select, such as `typescript`, `babel`, or `swc`, is used for the entire syntax transformation. However, you may want to mix these. There can be quite good reasons why you may want that, [as described here](#okay-then-why-wouldnt-you-use-just-babel).
411
+
By default, the transpiler you select, such as `typescript`, `babel`, or `swc`, is used for the entire syntax transformation. However, you may want to mix these. There can be quite good reasons why you may want that, [as described here](#okay-then-why-wouldnt-you-use-just-babel).
409
412
In short, you may find value in using the TypeScript compiler for stripping away the TypeScript specific syntax, and then delegate the remaining syntax transformations to swc or babel.
410
413
411
414
To accomplish this, the `transpiler` option also allows for an options record:
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "rollup-plugin-ts",
3
-
"version": "2.0.7",
3
+
"version": "3.0.0",
4
4
"description": "A TypeScript Rollup plugin that bundles declarations, respects Browserslists, and enables seamless integration with transpilers such as babel and swc",
0 commit comments