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

feat(build): use __DEV__ to control development mode #789

Merged
merged 4 commits into from
Feb 9, 2022
Merged

Conversation

dai-shi
Copy link
Member

@dai-shi dai-shi commented Feb 9, 2022

following pmndrs/jotai#968

@dai-shi dai-shi added this to the v3.7.0 milestone Feb 9, 2022
@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 9, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit b10fb72:

Sandbox Source
React Configuration
React Typescript Configuration
React Browserify Configuration
React Snowpack Configuration
React Parcel Configuration
Next.js Configuration

@github-actions
Copy link

github-actions bot commented Feb 9, 2022

Size Change: +9.5 kB (+36%) 🚨

Total Size: 36.1 kB

Filename Size Change
dist/esm/middleware.js 3.55 kB +3 B (0%)
dist/middleware.js 3.65 kB +1 B (0%)
dist/system/context.js 0 B -639 B (removed) 🏆
dist/system/index.js 0 B -1.37 kB (removed) 🏆
dist/system/middleware.js 0 B -3.69 kB (removed) 🏆
dist/system/shallow.js 0 B -338 B (removed) 🏆
dist/system/vanilla.js 0 B -609 B (removed) 🏆
dist/umd/context.js 0 B -763 B (removed) 🏆
dist/umd/index.js 0 B -1.49 kB (removed) 🏆
dist/umd/middleware.js 0 B -3.79 kB (removed) 🏆
dist/umd/shallow.js 0 B -444 B (removed) 🏆
dist/umd/vanilla.js 0 B -769 B (removed) 🏆
dist/system/context.development.js 639 B +639 B (new file) 🆕
dist/system/context.production.js 456 B +456 B (new file) 🆕
dist/system/index.development.js 1.37 kB +1.37 kB (new file) 🆕
dist/system/index.production.js 888 B +888 B (new file) 🆕
dist/system/middleware.development.js 3.67 kB +3.67 kB (new file) 🆕
dist/system/middleware.production.js 2.61 kB +2.61 kB (new file) 🆕
dist/system/shallow.development.js 338 B +338 B (new file) 🆕
dist/system/shallow.production.js 253 B +253 B (new file) 🆕
dist/system/vanilla.development.js 609 B +609 B (new file) 🆕
dist/system/vanilla.production.js 381 B +381 B (new file) 🆕
dist/umd/context.development.js 763 B +763 B (new file) 🆕
dist/umd/context.production.js 559 B +559 B (new file) 🆕
dist/umd/index.development.js 1.49 kB +1.49 kB (new file) 🆕
dist/umd/index.production.js 967 B +967 B (new file) 🆕
dist/umd/middleware.development.js 3.76 kB +3.76 kB (new file) 🆕
dist/umd/middleware.production.js 2.59 kB +2.59 kB (new file) 🆕
dist/umd/shallow.development.js 447 B +447 B (new file) 🆕
dist/umd/shallow.production.js 344 B +344 B (new file) 🆕
dist/umd/vanilla.development.js 775 B +775 B (new file) 🆕
dist/umd/vanilla.production.js 497 B +497 B (new file) 🆕
ℹ️ View Unchanged
Filename Size
dist/context.js 622 B
dist/esm/context.js 521 B
dist/esm/index.js 1.24 kB
dist/esm/shallow.js 272 B
dist/esm/vanilla.js 536 B
dist/index.js 1.35 kB
dist/shallow.js 318 B
dist/vanilla.js 634 B

compressed-size-action

@dai-shi dai-shi merged commit 5b938fb into main Feb 9, 2022
@dai-shi dai-shi deleted the feat/build/env branch February 9, 2022 23:45
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.

1 participant