From 35d8067ff08061ef2d0dd4f926bd2b8c29ab1568 Mon Sep 17 00:00:00 2001 From: LostMyCode <63048878+LostMyCode@users.noreply.github.com> Date: Sun, 26 Oct 2025 04:49:32 +0000 Subject: [PATCH 1/3] feat: migrate from Webpack to Vite This commit includes the following changes: - Removed Webpack configuration files (`.babelrc`, `webpack.config.js`). - Added Vite configuration file (`vite.config.js`). - Updated `package.json` with Vite-related scripts and dependencies, and removed Webpack dependencies. - Renamed JavaScript component files to JSX (`.js` to `.jsx`) to align with React best practices and Vite's default handling. - Updated `index.html` to include the Vite module script. - Updated `BufferReader.js` to remove CommonJS `module.exports` as it's no longer needed with ES Modules. --- .babelrc | 10 - public/index.html => index.html | 1 + package.json | 46 +- src/components/{App.js => App.jsx} | 0 .../{DisplayLog.js => DisplayLog.jsx} | 0 ...eContainer.js => EzInterfaceContainer.jsx} | 0 .../{InventoryPanel.js => InventoryPanel.jsx} | 0 .../{MapListPanel.js => MapListPanel.jsx} | 0 src/components/{Modal.js => Modal.jsx} | 0 .../{ModalProvider.js => ModalProvider.jsx} | 0 .../{SettingsPanel.js => SettingsPanel.jsx} | 0 .../{SkillListOpen.js => SkillListOpen.jsx} | 0 .../{SkillPanel.js => SkillPanel.jsx} | 0 .../{SystemPanel.js => SystemPanel.jsx} | 0 ...TopRightContent.js => TopRightContent.jsx} | 0 src/{game.js => game.jsx} | 0 src/{index.js => index.jsx} | 0 utils/BufferReader.js | 3 - vite.config.js | 19 + webpack.config.js | 94 - yarn.lock | 5524 ++++------------- 21 files changed, 1318 insertions(+), 4379 deletions(-) delete mode 100644 .babelrc rename public/index.html => index.html (98%) rename src/components/{App.js => App.jsx} (100%) rename src/components/{DisplayLog.js => DisplayLog.jsx} (100%) rename src/components/{EzInterfaceContainer.js => EzInterfaceContainer.jsx} (100%) rename src/components/{InventoryPanel.js => InventoryPanel.jsx} (100%) rename src/components/{MapListPanel.js => MapListPanel.jsx} (100%) rename src/components/{Modal.js => Modal.jsx} (100%) rename src/components/{ModalProvider.js => ModalProvider.jsx} (100%) rename src/components/{SettingsPanel.js => SettingsPanel.jsx} (100%) rename src/components/{SkillListOpen.js => SkillListOpen.jsx} (100%) rename src/components/{SkillPanel.js => SkillPanel.jsx} (100%) rename src/components/{SystemPanel.js => SystemPanel.jsx} (100%) rename src/components/{TopRightContent.js => TopRightContent.jsx} (100%) rename src/{game.js => game.jsx} (100%) rename src/{index.js => index.jsx} (100%) create mode 100644 vite.config.js delete mode 100644 webpack.config.js diff --git a/.babelrc b/.babelrc deleted file mode 100644 index cb7f56b..0000000 --- a/.babelrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "presets": [ - "@babel/env", - "@babel/react" - ], - "plugins": [ - "@babel/proposal-class-properties", - "@babel/proposal-object-rest-spread" - ] -} \ No newline at end of file diff --git a/public/index.html b/index.html similarity index 98% rename from public/index.html rename to index.html index e1e3337..cd1cfb3 100644 --- a/public/index.html +++ b/index.html @@ -115,6 +115,7 @@