Skip to content

Importing the getDiscordSecrets function results in 3 MB JS bundle #4

@timbru31

Description

@timbru31

Really appreciate the fixes you've made in the last hours 👍

However, there seems to be an issue with the tree shaking I assume.
Importing from
import { getDiscordSecrets } from "discord-bot-cdk-construct";
results in a 13 MB big lambda file.

Changing the import to
import { getDiscordSecrets } from "discord-bot-cdk-construct/dist/functions/utils/DiscordSecrets";
workarounds the problem.

I've noticed your oculus-start-bot still relies on a local version of the function, too, so this might went under your radar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions