-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When removing duplicate CSS, also remove from metadata (#4643)
* When removing duplicate CSS, also remove from metadata * Adding a changeset
- Loading branch information
Showing
7 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'astro': patch | ||
--- | ||
|
||
Remove regression when there is duplicate client/server CSS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletions
12
packages/astro/test/fixtures/0-css/src/components/ReactDynamic.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
import React from 'react'; | ||
|
||
const ReactLazy = React.lazy(() => import('./ReactLazy')); | ||
|
||
export default function() { | ||
return <div></div>; | ||
} | ||
return ( | ||
<div> | ||
<React.Suspense> | ||
<ReactLazy /> | ||
</React.Suspense> | ||
</div> | ||
); | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/astro/test/fixtures/0-css/src/components/ReactLazy.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import React from 'react'; | ||
import mod from './ReactLazy.module.css'; | ||
|
||
export default function() { | ||
return <div className={mod.lazy}></div>; | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/astro/test/fixtures/0-css/src/components/ReactLazy.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.lazy { | ||
background: yellow; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters