Skip to content

fix(rspeedy/core): output.inlineScripts should defaults to true#915

Merged
colinaaa merged 1 commit intolynx-family:release/rspeedy-0-9-7from
colinaaa:colin/0526/inline-scripts-cherry-pick
May 26, 2025
Merged

fix(rspeedy/core): output.inlineScripts should defaults to true#915
colinaaa merged 1 commit intolynx-family:release/rspeedy-0-9-7from
colinaaa:colin/0526/inline-scripts-cherry-pick

Conversation

@colinaaa
Copy link
Copy Markdown
Collaborator

Summary

This is a cherry-pick of #910 to release/rspeedy-0-9-7.

Fix a regression of #874.

We should set output.inlineScripts to Rsbuild, so that:

  • The default value of environment.config.output.inlineScripts could be true
  • The output.inlineScripts could be set in lynx.config.js

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

…ynx-family#910)

## Summary

<!-- Can you explain the reasoning behind implementing this change? What
problem or issue does this pull request resolve? -->

Fix a regression of lynx-family#874.

We should set `output.inlineScripts` to Rsbuild, so that:

- The default value of `environment.config.output.inlineScripts` could
be `true`
- The `output.inlineScripts` could be set in `lynx.config.js`

<!-- It would be helpful if you could provide any relevant context, such
as GitHub issues or related discussions. -->

## Checklist

<!--- Check and mark with an "x" -->

- [x] Tests updated (or not required).
- [ ] Documentation updated (or not required).
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented May 26, 2025

🦋 Changeset detected

Latest commit: baa92cd

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

This PR includes changesets to release 3 packages
Name Type
@lynx-js/rspeedy Patch
create-rspeedy Patch
upgrade-rspeedy 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

@colinaaa colinaaa merged commit 7082e59 into lynx-family:release/rspeedy-0-9-7 May 26, 2025
2 checks passed
@colinaaa colinaaa deleted the colin/0526/inline-scripts-cherry-pick branch May 26, 2025 08:28
colinaaa pushed a commit that referenced this pull request May 26, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to
release/rspeedy-0-9-7, this PR will be updated.


# Releases
## @lynx-js/chunk-loading-webpack-plugin@0.3.0

### Minor Changes

- **BREAKING CHANGE**: Requires `@rspack/core` v1.3.10.
([#922](#922))

## @lynx-js/rspeedy@0.9.7

### Patch Changes

- The default value of `output.inlineScripts` should be `true`.
([#915](#915))

- Updated dependencies
\[[`c210b79`](c210b79)]:
    -   @lynx-js/chunk-loading-webpack-plugin@0.3.0

## @lynx-js/react-rsbuild-plugin@0.10.1

### Patch Changes

- The default value of `output.inlineScripts` should be `true` on
`@lynx-js/rspeedy` &lt;= v0.9.6.
([#923](#923))

-   Updated dependencies \[]:
    -   @lynx-js/react-alias-rsbuild-plugin@0.10.1

## create-rspeedy@0.9.7



## @lynx-js/react-alias-rsbuild-plugin@0.10.1



## upgrade-rspeedy@0.9.7

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
colinaaa pushed a commit to colinaaa/lynx-stack that referenced this pull request May 26, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to
release/rspeedy-0-9-7, this PR will be updated.


# Releases
## @lynx-js/chunk-loading-webpack-plugin@0.3.0

### Minor Changes

- **BREAKING CHANGE**: Requires `@rspack/core` v1.3.10.
([lynx-family#922](lynx-family#922))

## @lynx-js/rspeedy@0.9.7

### Patch Changes

- The default value of `output.inlineScripts` should be `true`.
([lynx-family#915](lynx-family#915))

- Updated dependencies
\[[`c210b79`](lynx-family@c210b79)]:
    -   @lynx-js/chunk-loading-webpack-plugin@0.3.0

## @lynx-js/react-rsbuild-plugin@0.10.1

### Patch Changes

- The default value of `output.inlineScripts` should be `true` on
`@lynx-js/rspeedy` &lt;= v0.9.6.
([lynx-family#923](lynx-family#923))

-   Updated dependencies \[]:
    -   @lynx-js/react-alias-rsbuild-plugin@0.10.1

## create-rspeedy@0.9.7



## @lynx-js/react-alias-rsbuild-plugin@0.10.1



## upgrade-rspeedy@0.9.7

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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