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: Specify @preact/signals-core global to Microbundle #399

Merged
merged 4 commits into from
Aug 11, 2023

Conversation

rschristian
Copy link
Member

Closes #398

@changeset-bot
Copy link

changeset-bot bot commented Aug 11, 2023

🦋 Changeset detected

Latest commit: 686f9c0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@preact/signals Patch
@preact/signals-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Aug 11, 2023

Deploy Preview for preact-signals-demo ready!

Name Link
🔨 Latest commit 686f9c0
🔍 Latest deploy log https://app.netlify.com/sites/preact-signals-demo/deploys/64d5a5aa4e84d900080b4f2c
😎 Deploy Preview https://deploy-preview-399--preact-signals-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@rschristian rschristian changed the title fix: Specify @preact/signals-core global to Microbundle fix: Specify @preact/signals-core global to Microbundle Aug 11, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 11, 2023

Size Change: 0 B

Total Size: 78 kB

ℹ️ View Unchanged
Filename Size
docs/dist/assets/client.********.js 46.7 kB
docs/dist/assets/index.********.js 835 B
docs/dist/assets/jsxRuntime.module.********.js 281 B
docs/dist/assets/preact.module.********.js 4.02 kB
docs/dist/assets/signals-core.module.********.js 1.43 kB
docs/dist/assets/signals.module.********.js 2.02 kB
docs/dist/assets/style.********.js 21 B
docs/dist/assets/style.********.css 1.21 kB
docs/dist/basic-********.js 244 B
docs/dist/demos-********.js 3.35 kB
docs/dist/nesting-********.js 1.13 kB
docs/dist/react-********.js 238 B
packages/core/dist/signals-core.js 1.5 kB
packages/core/dist/signals-core.mjs 1.53 kB
packages/preact/dist/signals.js 1.27 kB
packages/preact/dist/signals.mjs 1.22 kB
packages/react-transform/dist/signals-*********.js 2.79 kB
packages/react-transform/dist/signals-transform.mjs 2.66 kB
packages/react-transform/dist/signals-transform.umd.js 2.91 kB
packages/react/dist/signals.js 1.35 kB
packages/react/dist/signals.mjs 1.29 kB

compressed-size-action

"build:react": "microbundle --raw --cwd packages/react && pnpm postbuild:react",
"build:react-runtime": "microbundle --raw --cwd packages/react/runtime && pnpm postbuild:react-runtime",
"build:react-transform": "microbundle --no-compress --raw --cwd packages/react-transform",
"_build": "microbundle --raw --globals @preact/signals-core=preactSignalsCore",
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure if this is any better tbh; either way I find it to be an unreadable wall of text. At least it reduces the duplication of the --raw and --globals flags? Happy to revert.

@rschristian rschristian merged commit a0f6eb8 into main Aug 11, 2023
6 checks passed
@rschristian rschristian deleted the fix/preact-umd branch August 11, 2023 06:51
@github-actions github-actions bot mentioned this pull request Aug 11, 2023
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.

UMD output of @preact/signals, @preact/signals-react use wrong name for @preact/signals-core
2 participants