Skip to content

Commit

Permalink
Polyfill Intl.Segmenter for browser compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kuchta committed Oct 24, 2023
1 parent 74fa32d commit 6242178
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 2 deletions.
53 changes: 51 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"pre-commit": "npm run check && npm run lint && npm run build && npm test"
},
"devDependencies": {
"@formatjs/intl-segmenter": "^11.5.0",
"@tailwindcss/typography": "^0.5.10",
"@types/node": "^20.8.7",
"@types/react": "^18.2.31",
Expand Down
1 change: 1 addition & 0 deletions src/app.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// import ReactDOM from 'react-dom'
import { createRoot } from 'react-dom/client'
import '@formatjs/intl-segmenter/polyfill'

import App from './components/App'
import './app.css'
Expand Down

0 comments on commit 6242178

Please sign in to comment.