@live-codes/browser-compilers 0.15.0 → 0.16.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-codes/browser-compilers",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Compilers that run in the browser, for use in livecodes.io",
5
5
  "author": "Hatem Hosny",
6
6
  "license": "MIT",
@@ -58,7 +58,8 @@
58
58
  "@webassemblyjs/wast-refmt": "1.12.1",
59
59
  "assemblyscript": "0.27.29",
60
60
  "autoprefixer": "10.4.19",
61
- "babel-preset-solid": "1.8.18",
61
+ "babel-plugin-react-compiler": "19.0.0-beta-df7b47d-20241124",
62
+ "babel-preset-solid": "1.8.19",
62
63
  "cssnano-preset-default": "7.0.4",
63
64
  "dts-bundle": "0.1.1",
64
65
  "elkjs-svg": "0.2.1",
@@ -76,7 +77,7 @@
76
77
  "pug": "3.0.3",
77
78
  "react": "18.2.0",
78
79
  "react-dom": "18.2.0",
79
- "react-native-web": "0.19.12",
80
+ "react-native-web": "0.19.13",
80
81
  "remark-gfm": "4.0.0",
81
82
  "sass": "1.77.6",
82
83
  "sucrase": "3.35.0",
@@ -422,6 +422,33 @@ esbuild.build({
422
422
  outfile: 'dist/babel-preset-solid/babel-preset-solid.js',
423
423
  globalName: 'babelPresetSolid',
424
424
  define: { global: 'window', 'process.env': '{}' },
425
+ plugins: [
426
+ NodeModulesPolyfills(),
427
+ GlobalsPolyfills({
428
+ process: true,
429
+ buffer: true,
430
+ }),
431
+ ],
432
+ });
433
+
434
+ // react compiler
435
+ patch('node_modules/babel-plugin-react-compiler/dist/index.js', {
436
+ 'require.resolve': 'void',
437
+ }).then(() => {
438
+ esbuild.build({
439
+ ...baseOptions,
440
+ entryPoints: ['vendor_modules/imports/babel-plugin-react-compiler.js'],
441
+ outfile: 'dist/babel-plugin-react-compiler/babel-plugin-react-compiler.js',
442
+ globalName: 'reactCompiler',
443
+ define: { global: 'window', 'process.env': '{}' },
444
+ plugins: [
445
+ NodeModulesPolyfills(),
446
+ GlobalsPolyfills({
447
+ process: true,
448
+ buffer: true,
449
+ }),
450
+ ],
451
+ });
425
452
  });
426
453
 
427
454
  // tailwindcss-plugins
@@ -8,6 +8,8 @@ AssemblyScript: [Apache License 2.0](https://github.com/AssemblyScript/assemblys
8
8
 
9
9
  Autoprefixer: [MIT License](https://github.com/postcss/autoprefixer/blob/61f71e9a8613b0c90357472d58fdcce26324ef4f/LICENSE)
10
10
 
11
+ babel-plugin-react-compiler: [MIT License](https://github.com/facebook/react/blob/7283a213dbbc31029e65005276f12202558558fc/LICENSE)
12
+
11
13
  BBob: [MIT License](https://github.com/JiLiZART/BBob/blob/17edb9e3e6572e72ab9cb042d86e2215c60afa86/LICENSE)
12
14
 
13
15
  Civet: [MIT License](https://github.com/DanielXMoore/Civet/blob/9b28e3a351d130ce031c7b28b50bcb6d2a499315/LICENSE)
@@ -84,6 +86,8 @@ turbopascal: [BSD 2-Clause License](https://github.com/MikeRalphson/turbopascal/
84
86
 
85
87
  UnoCSS: [MIT License](https://github.com/unocss/unocss/blob/f375524d9bca3f2f8b445b322ec0fc3eb124ec3c/LICENSE)
86
88
 
89
+ Vento: [MIT License](https://github.com/ventojs/vento/blob/b8d8fe29fc4a23d2a877fa9a40eabfc70ac98f2a/LICENSE)
90
+
87
91
  wacl: [BSD 3-Clause License](https://github.com/ecky-l/wacl/blob/9daacabb0102a9986f33263261350edfeebdd83b/LICENSE)
88
92
 
89
93
  wasm-refmt: [MIT License](https://github.com/xtuc/webassemblyjs/blob/45f733aa96476d74c8ac57598e13406a48a6fdc8/LICENSE)
@@ -0,0 +1,2 @@
1
+ import reactCompiler from 'babel-plugin-react-compiler';
2
+ export { reactCompiler };