We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Configure tree shaking of TS files in the build so that only imported properties get transpiled rather than entire packages.
Example of importing date-fns: https://github.com/statisticsnorway/mimir/blob/master/src/main/resources/lib/ssb/utils/dateUtils.ts#L1
date-fns
This currently transpiles the entire date-fns package instead of only enGB, nb, nn.
enGB, nb, nn
Another issue is that internal imports don't seem to be replaced by require. This local import (./dateUtils) is currently inlined on transpilation in all its entirety: https://github.com/statisticsnorway/mimir/blob/master/src/main/resources/lib/ssb/utils/articleUtils.ts#L9
./dateUtils
The text was updated successfully, but these errors were encountered:
Implement tree-shaking #503
b0a542d
Successfully merging a pull request may close this issue.
Configure tree shaking of TS files in the build so that only imported properties get transpiled rather than entire packages.
Example of importing
date-fns
:https://github.com/statisticsnorway/mimir/blob/master/src/main/resources/lib/ssb/utils/dateUtils.ts#L1
This currently transpiles the entire
date-fns
package instead of onlyenGB, nb, nn
.Another issue is that internal imports don't seem to be replaced by require.
This local import (
./dateUtils
) is currently inlined on transpilation in all its entirety:https://github.com/statisticsnorway/mimir/blob/master/src/main/resources/lib/ssb/utils/articleUtils.ts#L9
The text was updated successfully, but these errors were encountered: