Skip to content

Commit

Permalink
Build ui styles into ui-react package (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
reesscot authored Dec 20, 2021
1 parent 87af013 commit 59d8b8e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/hungry-forks-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aws-amplify/ui-react": patch
---

Build ui styles into ui-react package to fix [parcel](https://parceljs.org/) and [UMIJS](https://umijs.org/) apps.
2 changes: 1 addition & 1 deletion packages/react/src/styles.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import '@aws-amplify/ui/styles.css';
@import '../../ui/dist/styles.css';
1 change: 1 addition & 0 deletions packages/react/src/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './styles.css';
1 change: 1 addition & 0 deletions packages/react/tsup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
'src/legacy.tsx',
'src/icons.tsx',
'src/internal.tsx',
'src/styles.ts',
],
// `aws-amplify` is external, but sub-dependencies weren't automatically externalized ("require" statements were included)
external: ['`aws-amplify', /^@aws-amplify\//],
Expand Down

0 comments on commit 59d8b8e

Please sign in to comment.