Skip to content

Conversation

@jgoamakf
Copy link
Contributor

What kind of change does this PR introduce?

Bug. Not harmful, but I think this is not intended behavior.

Did you add tests for your changes?
No.

Summary

preact build --no-prerender produces <script type="__PREACT_CLI_DATA__">"preRenderData": { "url" : "/" }</script> in
build/index.html.
But preRenderData is used in pre-rendered components, I expect that --no-prerender needs to prevent preRenderData.

Does this PR introduce a breaking change?
Yes.
I think existing programs do not rely on it.

Other information

Environment Info:
  System:
    OS: Linux 4.19 Ubuntu 20.04.1 LTS (Focal Fossa)
    CPU: (6) x64 AMD Ryzen 5 3500 6-Core Processor
  Binaries:
    Node: 14.15.4 - /usr/bin/node
    npm: 6.14.10 - /usr/bin/npm
  npmPackages:
    preact: ^10.3.2 => 10.5.10
    preact-cli: ^3.0.0 => 3.0.5
    preact-render-to-string: ^5.1.4 => 5.1.12
    preact-router: ^3.2.1 => 3.2.1

@jgoamakf jgoamakf requested a review from a team as a code owner January 16, 2021 20:52
@changeset-bot
Copy link

changeset-bot bot commented Jan 16, 2021

🦋 Changeset detected

Latest commit: c4f6ab2

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

This PR includes changesets to release 1 package
Name Type
preact-cli 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

@rschristian
Copy link
Member

Otherwise LGTM. Just make sure you add a changeset. From the root of the repo, run yarn changeset and you'll get a little CLI app to walk you through it.

Is that a typo where you say this is a breaking change? I can't imagine anyone is using this in any way.

@jgoamakf
Copy link
Contributor Author

I pushed 2 commits: tab indent inside if and changeset. Thank you for reviewing this PR.

@ForsakenHarmony ForsakenHarmony merged commit 24c7473 into preactjs:master Feb 2, 2021
@preact-bot preact-bot mentioned this pull request Feb 2, 2021
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.

3 participants