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

Introduce a "bundle id" #55

Merged
merged 2 commits into from
Jul 30, 2024
Merged

Conversation

ferm10n
Copy link
Contributor

@ferm10n ferm10n commented Jul 29, 2024

Fixes #54 , cleans up old magic comment stuff.

Bundle ID

The main issue was that _init was not called after it gets updated, because the check on globalThis[Symbol.for('_initialized')] was looking for a boolean. Now it will look for a match on the ID, which just comes from the timestamp when the build was created.

@ferm10n ferm10n changed the title Introduce a "bundle id" and adds jsdoc comment for controlling when a function is dropped Introduce a "bundle id" Jul 29, 2024
@ferm10n
Copy link
Contributor Author

ferm10n commented Jul 29, 2024

Force pushed to remove --no-drop feature I was working on

Copy link
Owner

@divyenduz divyenduz left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for the clean up too

@divyenduz divyenduz merged commit fc87cf5 into divyenduz:main Jul 30, 2024
4 checks passed
@divyenduz
Copy link
Owner

This is live in 0.0.59

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.

Old bundle _init function persists
2 participants