Skip to content

refactor: migrate to vite#202

Merged
joaocarmo merged 8 commits intomainfrom
refactor-migrate-to-vite
Apr 3, 2026
Merged

refactor: migrate to vite#202
joaocarmo merged 8 commits intomainfrom
refactor-migrate-to-vite

Conversation

@joaocarmo
Copy link
Copy Markdown
Owner

Request type

  • Chore
  • Feature
  • Fix
  • Refactor
  • Tests
  • Documentation

Summary

Remove babel, webpack, and jest configurations and replace with vite build system and vitest testing framework. Add example demo application with React 18+ support and update build scripts to use vite commands.

Check lists

  • Tests passed
  • Coding style respected

Update @types/flat from 5.0.2 to 5.0.5, @types/linkifyjs from 2.1.4
to 2.1.7, and eslint from 10.1.0 to 10.2.0 for improved type
definitions and latest linting features
Remove babel, webpack, and jest configurations and replace with vite
build system and vitest testing framework. Add example demo application
with React 18+ support and update build scripts to use vite commands.
@joaocarmo joaocarmo self-assigned this Apr 3, 2026
@joaocarmo joaocarmo added the enhancement An enhancement that doesn't translate into a feature label Apr 3, 2026
Update faker import and API calls to use the official @faker-js/faker
package. Replace deprecated methods with their new equivalents:
- address.* -> location.*
- name.findName() -> person.fullName()
- internet.userName() -> internet.username()
- phone.phoneNumber() -> phone.number()
- datatype.number() -> number.int()

Remove custom latin1 plugin and faker optimization exclusions that
were needed for the old package. Add CSS export path and default
export to package.json exports map.
Update code examples to use React 18's createRoot API instead of
deprecated ReactDOM.render and migrate from legacy faker package
to @faker-js/faker with updated method names
newData.splice(idx, 1)

this.setState({ data: newData })
this.setState({ data: data.filter((r) => r._id !== row._id) })
Move example build artifacts from dist to dist-example to avoid
conflicts with main library build output and improve project
organization
@joaocarmo joaocarmo merged commit b6bd8c2 into main Apr 3, 2026
4 checks passed
@joaocarmo joaocarmo deleted the refactor-migrate-to-vite branch April 3, 2026 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An enhancement that doesn't translate into a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants