-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
By using rollup we can support es module imports for other webpack and rollup users via the `package.json` `module` field. This allows for tree-shaking for this lib (especially for something like `MaybeT` which is not likely used very often). The other advantage to using rollup is some minor performance boosts and removal of circular import issues on the consumer. Currently using maybetyped in a repo with webpack or rollup results in warnings about circular imports. While this doesn't break anything, it is definitely sub-optimal to be the source of these warnings.
- Loading branch information
andy.patterson
committed
Jul 9, 2018
1 parent
5b3b52f
commit 491ed67
Showing
4 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ node_modules/ | |
.vscode/ | ||
dist/ | ||
coverage/ | ||
|
||
.rpt2_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import typescript from 'rollup-plugin-typescript2'; | ||
|
||
export default { | ||
input: './src/index.ts', | ||
|
||
plugins: [ | ||
typescript({ | ||
tsconfig: "tsconfig.json" | ||
}) | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters