diff --git a/packages/ui/.parcelrc b/packages/ui/.parcelrc index 941c5e47e..4dc2b9f04 100644 --- a/packages/ui/.parcelrc +++ b/packages/ui/.parcelrc @@ -11,5 +11,6 @@ "@parcel/compressor-gzip", "@parcel/compressor-brotli" ] - } + }, + "resolvers": ["parcel-resolver-ignore", "..."] } diff --git a/packages/ui/.parcelrc.arm64 b/packages/ui/.parcelrc.arm64 index a781fc41e..8066b68ca 100644 --- a/packages/ui/.parcelrc.arm64 +++ b/packages/ui/.parcelrc.arm64 @@ -15,5 +15,6 @@ "@parcel/compressor-gzip", "@parcel/compressor-brotli" ] - } + }, + "resolvers": ["parcel-resolver-ignore", "..."] } diff --git a/packages/ui/package.json b/packages/ui/package.json index 5c3319998..48f3dcc44 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -59,6 +59,7 @@ "libphonenumber-js": "^1.9.49", "lint-staged": "^13.0.0", "parcel": "2.8.3", + "parcel-resolver-ignore": "^2.1.3", "postcss": "^8.4.6", "postcss-modules": "^4.3.0", "prettier": "^2.8.2", @@ -88,6 +89,9 @@ } } }, + "parcelIgnore": [ + "^/api/.+" + ], "alias": { "@/*": "./src/$1" }, diff --git a/packages/ui/src/index.html b/packages/ui/src/index.html index 983769dcd..acec71900 100644 --- a/packages/ui/src/index.html +++ b/packages/ui/src/index.html @@ -5,6 +5,8 @@ Logto + + diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 26524dc16..0b47a7b3c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -914,6 +914,7 @@ importers: libphonenumber-js: ^1.9.49 lint-staged: ^13.0.0 parcel: 2.8.3 + parcel-resolver-ignore: ^2.1.3 postcss: ^8.4.6 postcss-modules: ^4.3.0 prettier: ^2.8.2 @@ -974,6 +975,7 @@ importers: libphonenumber-js: 1.9.49 lint-staged: 13.0.0 parcel: 2.8.3_postcss@8.4.6 + parcel-resolver-ignore: 2.1.3_parcel@2.8.3 postcss: 8.4.6 postcss-modules: 4.3.0_postcss@8.4.6 prettier: 2.8.4 @@ -11249,6 +11251,15 @@ packages: /packet-reader/1.0.0: resolution: {integrity: sha512-HAKu/fG3HpHFO0AA8WE8q2g+gBJaZ9MG7fcKk+IJPLTGAD6Psw4443l+9DGRbOIh3/aXr7Phy0TjilYivJo5XQ==} + /parcel-resolver-ignore/2.1.3_parcel@2.8.3: + resolution: {integrity: sha512-C8uLvR4o7SPRSsQ/Nylm1/PdsLwn/Z9bzCs66qT3XIebJC7ojaFFF3MDl/mie5audngjcFF8wzU0AoEQkZq2pA==} + engines: {parcel: '>=2.0.0'} + peerDependencies: + parcel: '>=2.0.0' + dependencies: + parcel: 2.8.3_postcss@8.4.6 + dev: true + /parcel/2.8.3_postcss@8.4.14: resolution: {integrity: sha512-5rMBpbNE72g6jZvkdR5gS2nyhwIXaJy8i65osOqs/+5b7zgf3eMKgjSsDrv6bhz3gzifsba6MBJiZdBckl+vnA==} engines: {node: '>= 12.0.0'}