Skip to content

Commit

Permalink
release 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Nov 27, 2021
1 parent 292b115 commit 454f16d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 0.1.2

- Fix transform failed when rollup virtual module is involved.
- https://rollupjs.org/guide/en/#conventions
- https://github.com/SukkaW/rollup-plugin-swc/pull/1
- https://github.com/swc-project/swc/issues/2853
- Support read default config from [`jsconfig.json`](https://code.visualstudio.com/docs/languages/jsconfig) as well
- `jsconfig.json` will be ignored if `tsconfig.json` and `jsconfig.json` both exists.

## 0.1.1

- Add `.npmignore` to reduce the size of the package.
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ export default {
```

- `include` and `exclude` can be `String | RegExp | Array<String | RegExp>`, when supplied it will override default values.
- It uses `importHelpers`, `experimentalDecorators`, `emitDecoratorMetadata`, `jsxFactory`, `jsxFragmentFactory` and `target` options from your `tsconfig.json` as default values if your doesn't provide corresponding swc configuration.
- It uses `importHelpers`, `experimentalDecorators`, `emitDecoratorMetadata`, `jsxFactory`, `jsxFragmentFactory` and `target` options from your `tsconfig.json` or [`jsconfig.json`](https://code.visualstudio.com/docs/languages/jsconfig) as default values if your doesn't provide corresponding swc configuration.
- Currently, `rollup-plugin-swc` won't use `esModuleInterop` from your `tsconfig.json` as swc requires `module.type` configuration when `module.noInterop` is given.
- `jsconfig.json` will be ignored if `tsconfig.json` and `jsconfig.json` both exists.

## Declaration File

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rollup-plugin-swc3",
"version": "0.1.1",
"version": "0.1.2",
"description": "Use SWC with Rollup to transform ESNext and TypeScript code.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 454f16d

Please sign in to comment.