-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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(react): add Vite bundler option for buildable libraries #13382
Merged
Conversation
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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 24, 2022 17:59
dd9248c
to
55d7732
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 24, 2022 18:40
55d7732
to
90d227d
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 24, 2022 18:56
90d227d
to
c2a336a
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 24, 2022 19:13
c2a336a
to
7aaa8e3
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
4 times, most recently
from
November 24, 2022 19:28
341afa9
to
87407bf
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 24, 2022 19:40
87407bf
to
197cc63
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 24, 2022 19:59
197cc63
to
c2bbf1a
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 24, 2022 20:33
c2bbf1a
to
ca26faf
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 24, 2022 20:59
ca26faf
to
9641c72
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 24, 2022 21:08
9641c72
to
edb14e8
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 24, 2022 21:50
edb14e8
to
28d4215
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 25, 2022 13:34
28d4215
to
9c4876b
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 25, 2022 16:02
f4dfff2
to
6a3ab05
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 25, 2022 16:45
6a3ab05
to
3817703
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 25, 2022 16:49
3817703
to
a291da5
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 25, 2022 17:01
a291da5
to
177c280
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 25, 2022 17:09
177c280
to
f4ce099
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 25, 2022 17:22
f4ce099
to
9923464
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 25, 2022 18:58
9923464
to
4ee4d15
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
2 times, most recently
from
November 25, 2022 19:09
3898fcb
to
6954f4f
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 25, 2022 19:17
6954f4f
to
e9269a6
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 25, 2022 19:22
e9269a6
to
975ef1c
Compare
jaysoo
force-pushed
the
feat/vite-react-lib
branch
from
November 25, 2022 20:03
975ef1c
to
44ce105
Compare
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This PR adds
--bundle=vite
option when generating React libraries.If you created the workspace using
--preset=react-experimental
then the vite bundler is the default, so you can just run:Changes
@nrwl/vite:build
executor will also copypackage.json
if it exists.package.json
generated by@nrwl/react:lib
contains correct mapping for the default formats (ESM, CJS), but users can change it if desired.babel.config.json
and.babelrc
since they are not needed by Vite. The rootbabel.config.json
will be added if subsequent generators use--compiler=babel
option.vite.confi.ts
file.