Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(rulesets): __importDefault undefined #2243

Merged
merged 1 commit into from
Aug 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/rulesets/src/shared/functions/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export { default as uniquenessTags } from './uniquenessTags';
import { default as uniquenessTags } from './uniquenessTags';

export { uniquenessTags };
Comment on lines +1 to +3
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this results in a slightly smaller output, as no __importDefault function is declared

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"declaration": true,
"removeComments": true,
"skipLibCheck": true,
"noEmitHelpers": true,
"noEmitHelpers": false,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

but in case someone does want to use export { default as xyz }, we're now covered and the function will be output.

"importHelpers": true
}
}