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

chore(build): size optimization #1978

Merged
merged 3 commits into from
Mar 1, 2024
Merged

chore(build): size optimization #1978

merged 3 commits into from
Mar 1, 2024

Conversation

Pessimistress
Copy link
Collaborator

@Pessimistress Pessimistress commented Mar 1, 2024

Change List

  • Bump ocular-dev-tools
  • Use inline-webgl-constants transformer
  • Use remove-glsl-comments transformer

@@ -35,6 +35,7 @@
],
"sideEffects": false,
"scripts": {
"pre-build": "npx esbuild src/index.ts --bundle --format=cjs --outfile=dist/index.cjs",
Copy link
Collaborator Author

@Pessimistress Pessimistress Mar 1, 2024

Choose a reason for hiding this comment

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

The constants module is a dependency of the inline-webgl-constants TS plugin

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm yes that is messy. Perhaps we can add a "scripts-comments: ["comment1", "comment2",...] section above in package.json so we can explain what is going on. This kind of stuff in build files is not fun for maintainers down the road.

@Pessimistress Pessimistress changed the title chore(build): inline WebGL constants chore(build): size optimization Mar 1, 2024
@@ -35,6 +35,7 @@
],
"sideEffects": false,
"scripts": {
"pre-build": "npx esbuild src/index.ts --bundle --format=cjs --outfile=dist/index.cjs",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm yes that is messy. Perhaps we can add a "scripts-comments: ["comment1", "comment2",...] section above in package.json so we can explain what is going on. This kind of stuff in build files is not fun for maintainers down the road.

@Pessimistress Pessimistress merged commit c135684 into master Mar 1, 2024
2 checks passed
@Pessimistress Pessimistress deleted the x/inline-constants branch March 1, 2024 20:13
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.

None yet

2 participants