Skip to content

Commit 50a61db

Browse files
committed
Merge branch 'main' of github.com:adobe/react-spectrum into tsdiff_automation_fixes
2 parents 9943b4a + 043dbb8 commit 50a61db

6 files changed

Lines changed: 441 additions & 2838 deletions

File tree

-234 KB
Binary file not shown.

examples/s2-vite-project/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,23 @@
1010
"preview": "vite preview"
1111
},
1212
"dependencies": {
13-
"@react-spectrum/s2": "latest",
13+
"@react-spectrum/s2": "^1.3.1",
1414
"react": "^18.2.0",
1515
"react-dom": "^18.2.0"
1616
},
1717
"devDependencies": {
18+
"@react-aria/optimize-locales-plugin": "latest",
1819
"@types/react": "^18.2.66",
1920
"@types/react-dom": "^18.2.22",
2021
"@typescript-eslint/eslint-plugin": "^7.2.0",
2122
"@typescript-eslint/parser": "^7.2.0",
22-
"@vitejs/plugin-react": "^4.2.1",
23+
"@vitejs/plugin-react": "^6.0.1",
2324
"eslint": "^8.57.0",
2425
"eslint-plugin-react-hooks": "^4.6.0",
2526
"eslint-plugin-react-refresh": "^0.4.6",
2627
"lightningcss": "^1.27.0",
2728
"typescript": "^5.2.2",
2829
"unplugin-parcel-macros": "latest",
29-
"vite": "^5.2.0"
30+
"vite": "^8.0.0"
3031
}
3132
}

examples/s2-vite-project/vite.config.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,22 @@
1111
*/
1212

1313
import {defineConfig} from 'vite';
14+
import optimizeLocales from '@react-aria/optimize-locales-plugin';
1415
import react from '@vitejs/plugin-react';
1516
import macros from 'unplugin-parcel-macros';
1617

1718
// https://vitejs.dev/config/
1819
export default defineConfig({
19-
plugins: [macros.vite(), react()],
20+
plugins: [
21+
macros.vite(),
22+
react(),
23+
{
24+
...optimizeLocales.vite({
25+
locales: ['en', 'pl']
26+
}),
27+
enforce: 'pre'
28+
}
29+
],
2030
build: {
2131
target: ['es2022'],
2232
// Lightning CSS produces much a smaller CSS bundle than the default minifier.

0 commit comments

Comments
 (0)