-
Notifications
You must be signed in to change notification settings - Fork 122
feat: support bundle and load css in external bundle #2143
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
d9c0752
feat: support bundle and load css in external bundle
upupming 8cab401
Merge branch 'main' into feat/rslib-css
upupming 872c04a
test: add test case for external bundle css
upupming 655fd14
Merge origin/main into feat/rslib-css
upupming 9fd7b20
Merge remote-tracking branch 'origin/main' into feat/rslib-css
upupming 39c3de2
feat: upgrade @lynx-js/tasm and remove css import in consumer
upupming 7075e4a
feat: move `cssChunksToMap` implementation to `@lynx-js/css-serializer`
upupming a44e2d6
Merge remote-tracking branch 'origin/feat/cssChunksToMap' into feat/r…
upupming 79a3613
feat: use cssChunksToMap from `@lynx-js/css-serializer`
upupming bd1dfa6
test: css loading in external bundle
upupming 94da61e
Merge branch 'main' into feat/rslib-css
upupming 3e900fe
chore: upgrade @lynx-js/tasm to 0.0.25
upupming f69be35
chore: upgrade @lynx-js/tasm to 0.0.25
upupming 1c41029
Merge branches 'feat/rslib-css' and 'feat/rslib-css' of github.com:ly…
upupming d6d75a5
chore: upgrade @lynx-js/tasm to 0.0.26
upupming 0bd3ba9
Merge remote-tracking branch 'origin/main' into feat/rslib-css
upupming 30a3f51
Merge remote-tracking branch 'origin/main' into feat/rslib-css
upupming c07a9a2
fix: cr of rabbit
upupming 102ab4b
chore: remove unused deps
upupming a80ede6
feat: use target: 'web' instead modify css loaders
upupming File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,7 @@ | ||
| --- | ||
| "@lynx-js/externals-loading-webpack-plugin": patch | ||
| "@lynx-js/lynx-bundle-rslib-config": patch | ||
| "@lynx-js/react-rsbuild-plugin": patch | ||
| --- | ||
|
|
||
| Support bundle and load css in external bundle |
This file contains hidden or 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,8 @@ | ||
| /* At least a css rule is needed in consumer | ||
| * to make sure the css engine is loaded | ||
| * so that the css in external bundles can be applied | ||
| * | ||
| * This is a limitation of Lynx engine | ||
| * we can remove this limitation in the future | ||
| */ | ||
| .dummy {} | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
3 changes: 3 additions & 0 deletions
3
packages/rspeedy/lynx-bundle-rslib-config/test/fixtures/css-lib/index.css
This file contains hidden or 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 @@ | ||
| .container { | ||
| color: red; | ||
| } |
3 changes: 3 additions & 0 deletions
3
packages/rspeedy/lynx-bundle-rslib-config/test/fixtures/css-lib/index.ts
This file contains hidden or 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 @@ | ||
| import './index.css' | ||
|
|
||
| export const hello = 'world' |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.