neutronium 1.7.0 → 1.9.0

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.
@@ -14,8 +14,6 @@ function compileProject(projectDir = process.cwd()) {
14
14
  const distDir = path.join(projectDir, 'dist');
15
15
  const outHtmlPath = path.join(distDir, 'index.html');
16
16
  const outJsPath = path.join(distDir, 'App.compiled.js');
17
-
18
- // Use direct path to neutronium module
19
17
  const neutroniumPath = '../node_modules/neutronium/src/index.js';
20
18
 
21
19
  try {
@@ -26,15 +24,18 @@ function compileProject(projectDir = process.cwd()) {
26
24
  const { code: transpiled } = babel.transformSync(sourceCode, {
27
25
  filename: 'App.js',
28
26
  presets: [['@babel/preset-env', { targets: { esmodules: true } }]],
29
- plugins: [['@babel/plugin-transform-react-jsx', { pragma: 'h' }]],
27
+ plugins: [['@babel/plugin-transform-react-jsx', { pragma: '_neutronium.h' }]],
30
28
  });
31
29
 
32
30
  const finalJsCode = `
33
- import { h, createApp } from '${neutroniumPath}';
31
+ import * as _neutronium from '${neutroniumPath}';
32
+
33
+ "use strict";
34
34
 
35
35
  ${transpiled}
36
36
 
37
- createApp(App).mount('#app');
37
+ (0, _neutronium.createApp)(App).mount('#app');
38
+ _neutronium.createApp(App).mount('#app');
38
39
  `.trim();
39
40
 
40
41
  ensureDir(distDir);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neutronium",
3
- "version": "1.7.0",
3
+ "version": "1.9.0",
4
4
  "description": "A dense, efficient JavaScript framework for building modern web applications",
5
5
  "main": "src/index.js",
6
6
  "type": "commonjs",
@@ -32,9 +32,7 @@
32
32
  "jsdom": "^26.1.0",
33
33
  "mime": "^4.0.7",
34
34
  "open": "^10.1.2",
35
- "ws": "^8.18.3"
36
- },
37
- "devDependencies": {
35
+ "ws": "^8.18.3",
38
36
  "@babel/cli": "^7.28.0",
39
37
  "@babel/core": "^7.28.0",
40
38
  "@babel/plugin-transform-react-jsx": "^7.27.1",