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

fix(html/minifier): merge bugs + merge modules #6393

Merged
merged 6 commits into from Nov 11, 2022

Conversation

alexander-akait
Copy link
Collaborator

Description:

Fix bugs with <script> merging + improve merging for <script type="module">

BREAKING CHANGE:

No

Related issue (if exists):

No

;;
var a = 3 + 6;
;</script><script type=module>import t from"foo.js";let o=58800,e="testtest"</script><script>let e=new Date;alert("Today's date is "+e)</script><script src=javascript.js>
</script><script>var a=3,a=9</script><script type=module>import t from"foo.js";let o=58800,e="testtest"</script><script>let e=new Date;alert("Today's date is "+e)</script><script src=javascript.js>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Bug fix, now we don't merge script with broken content

@kdy1 kdy1 added this to the Planned milestone Nov 10, 2022
crates/swc_html_minifier/src/lib.rs Show resolved Hide resolved
crates/swc_html_minifier/src/lib.rs Outdated Show resolved Hide resolved
@alexander-akait
Copy link
Collaborator Author

@kdy1 Answered and fixed

Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

Thanks!


swc-bump:

  • swc_html_minifier

@kdy1 kdy1 enabled auto-merge (squash) November 11, 2022 08:19
Copy link
Collaborator

@swc-bot swc-bot left a comment

Choose a reason for hiding this comment

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

Automated review comment generated by auto-rebase script

@kdy1 kdy1 merged commit a923e52 into swc-project:main Nov 11, 2022
@kdy1 kdy1 modified the milestones: Planned, v1.3.15 Nov 12, 2022
@alexander-akait alexander-akait deleted the feat-merge-type-modules branch November 13, 2022 15:41
@swc-project swc-project locked as resolved and limited conversation to collaborators Dec 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants