![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
vite-plugin-haxe
Advanced tools
Lets you run Haxe code in your Vite project. Supports client-side javascript currently.
Prerequisites: Haxe and Node.js.
npm
is gladly substituted for pnpm.
Open a terminal in your project folder and execute this:
npm create vite@latest my-haxe-app --template vanilla
cd my-haxe-app
npm install
npm install -D vite-plugin-haxe
Add a vite.config.js:
import { defineConfig } from "vite";
import haxe from "vite-plugin-haxe";
/** @type {import('vite').UserConfig} */
export default defineConfig({
plugins: [haxe()],
});
Add/edit the following files:
main.js
import "./style.css";
import "./main.hxml";
main.hxml
-cp src
-main Main
-dce full
# -js isn't needed, but helpful for IDE's.
-js main.js
-D source-map-content
-debug
src/Main.hx
package;
import js.Browser.document;
import js.html.ButtonElement;
class Main {
static function main() {
document.getElementById('app')
.innerHTML = '
<div>
<a href="https://vitejs.dev" target="_blank">
<img src="/vite.svg" class="logo" alt="Vite logo" />
</a>
<a href="https://haxe.org/" target="_blank">
<img src="https://upload.wikimedia.org/wikipedia/commons/8/89/Haxe_logo.svg" class="logo vanilla" alt="Haxe logo" />
</a>
<h1>Vite + Haxe</h1>
<div class="card">
<button id="counter" type="button"></button>
</div>
<p class="read-the-docs">
Click on the Vite and Haxe logos to learn more
</p>
</div>
';
Counter.setupCounter(cast(document.querySelector('#counter'), ButtonElement));
}
}
class Counter {
public static function setupCounter(element:ButtonElement) {
var counter = 0;
final setCounter = (count:Int) -> {
counter = count;
element.innerHTML = 'count is $counter';
}
element.addEventListener('click', () -> setCounter(counter + 1));
setCounter(0);
}
}
Start the fun with npm run dev
.
FAQs
Lets you run Haxe code in your Vite project.
The npm package vite-plugin-haxe receives a total of 1 weekly downloads. As such, vite-plugin-haxe popularity was classified as not popular.
We found that vite-plugin-haxe demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.