Skip to content

Conversation

@mad-gooze
Copy link

Hi! Thanks for a nice lib!

This tsconfig settings decrease Safetify bundle (from 25kb to 16kb minified) without breaking compability.

@@ -1,12 +1,13 @@
{
"compilerOptions": {
"importHelpers": true,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

importHelpers makes typescript require __extends helper from tslib instead of inlining it to every class declaration

"es2015.promise"
],
"module": "commonjs",
"module": "ESNext",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

esnext module output enables webpack module concatenation which remove a lot of webpack boilerplate code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant