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

Make starbeam smaller / faster #5

Merged
merged 6 commits into from
Jan 12, 2024
Merged

Conversation

NullVoxPopuli
Copy link
Contributor

@NullVoxPopuli NullVoxPopuli added the enhancement New feature or request label Jan 6, 2024
Copy link

stackblitz bot commented Jan 6, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@NullVoxPopuli NullVoxPopuli force-pushed the make-starbeam-smalelr branch from 144cd51 to 5761fd2 Compare January 6, 2024 19:16
@NullVoxPopuli NullVoxPopuli force-pushed the make-starbeam-smalelr branch from 1899223 to 2af9405 Compare January 6, 2024 22:52
@@ -31,6 +31,9 @@ export default (mode = process.env["MODE"] ?? "development"): RollupPlugin => {
return createReplacePlugin(
(id) => /\.(j|t)sx?$/.test(id),
{
// remove inline testing
"import.meta.vitest": "false",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we don't want to include in-source tests in any output code

@@ -113,16 +113,27 @@ export default function typescript(
};

const minify = {
format: {
comments: mode === 'production',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

turns out, SWC doesn't actually remove comments 😅

@@ -1,6 +1,7 @@
import { execSync } from 'node:child_process';
import { join, resolve } from "node:path";

import terser from '@rollup/plugin-terser';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

used for removing comments

@NullVoxPopuli NullVoxPopuli marked this pull request as ready for review January 11, 2024 23:12
@NullVoxPopuli NullVoxPopuli merged commit 7c68ef3 into main Jan 12, 2024
2 checks passed
@NullVoxPopuli NullVoxPopuli deleted the make-starbeam-smalelr branch January 12, 2024 15:50
This was referenced Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant