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: support isolate runtime resource #1200

Merged
merged 11 commits into from
Apr 26, 2024

Conversation

callqh
Copy link
Member

@callqh callqh commented Apr 16, 2024

Description:
remove the runtime files embedded in html. Currently the runtime file is separate and is introduced in the html like this <script data-farm-entry-script="true" src="/farm_runtime_resource_b896cf9d.mjs"></script>

BREAKING CHANGE:

Related issue (if exists):
close #434

Copy link

changeset-bot bot commented Apr 16, 2024

🦋 Changeset detected

Latest commit: a58be54

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

This PR includes changesets to release 2 packages
Name Type
@farmfe/core Patch
@farmfe-examples/react 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

@callqh callqh changed the title feat: support isolate runtime resource feat(WIP): support isolate runtime resource Apr 16, 2024
@callqh callqh added the WIP work in progress label Apr 19, 2024
@callqh callqh removed the WIP work in progress label Apr 24, 2024
@callqh callqh changed the title feat(WIP): support isolate runtime resource feat: support isolate runtime resource Apr 24, 2024
@callqh callqh added the WIP work in progress label Apr 24, 2024
@callqh
Copy link
Member Author

callqh commented Apr 24, 2024

Added new configuration:

compilation: {
    runtime:{
      disabledInlineScript: true,
    }
}

Whether to inline the farm entry script, the default is false. If set to true, the farm entry script will be output as a separate file.
image

image

@callqh callqh requested a review from wre232114 April 24, 2024 08:31
@wre232114 wre232114 added this to the V1.2.0 milestone Apr 24, 2024
@wre232114 wre232114 merged commit 5b75ec2 into farm-fe:main Apr 26, 2024
30 checks passed
@github-actions github-actions bot mentioned this pull request Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support isolate runtime resource
2 participants