neutronium 3.0.8 → 3.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -80,7 +80,7 @@ async function compileProject(projectDir = process.cwd()) {
80
80
  log('🛠️ Generating index.html...');
81
81
  const htmlContent = baseHtml(`
82
82
  <script defer type="module" src="./${entry}"></script>
83
- `, entry);
83
+ `);
84
84
 
85
85
  writeFile(path.join(distDir, 'index.html'), htmlContent);
86
86
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neutronium",
3
- "version": "3.0.8",
3
+ "version": "3.0.9",
4
4
  "description": "Ultra-dense JavaScript framework – maximum performance, minimal overhead",
5
5
  "main": "src/index.js",
6
6
  "type": "commonjs",
package/sandbox.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as Babel from 'https://esm.sh/@babel/standalone@7.28.6/es2022/standalone.mjs';
2
- import { baseHtml } from './compiler/template';
2
+ import { baseHtml } from './compiler/template.js';
3
3
 
4
4
  export async function compileAndReturnOutput(source) {
5
5
  try {
@@ -7,7 +7,7 @@ export async function compileAndReturnOutput(source) {
7
7
 
8
8
  const result = Babel.transform(source, {
9
9
  plugins: [
10
- '@babel/plugin-transform-react-jsx', {
10
+ Babel.availablePlugins["transform-react-jsx"], {
11
11
  pragma: "neutronium.h",
12
12
  pragmaFrag: "_neutronium.Fragment",
13
13
  runtime: "classic",
@@ -15,7 +15,7 @@ export async function compileAndReturnOutput(source) {
15
15
  ]
16
16
  })
17
17
  let code = result.code;
18
-
18
+ code = `<script>${code}</script>`
19
19
  console.log('🛠️ Generating index.html...');
20
20
  const htmlContent = baseHtml(code);
21
21