@live-codes/browser-compilers 0.15.1 → 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/dist/babel-plugin-react-compiler/babel-plugin-react-compiler.js +2032 -0
- package/dist/react-native-web/react-native-web.js +14 -14
- package/package.json +3 -2
- package/scripts/vendors.js +20 -0
- package/vendor-licenses.md +2 -0
- package/vendor_modules/imports/babel-plugin-react-compiler.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-codes/browser-compilers",
|
|
3
|
-
"version": "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,6 +58,7 @@
|
|
|
58
58
|
"@webassemblyjs/wast-refmt": "1.12.1",
|
|
59
59
|
"assemblyscript": "0.27.29",
|
|
60
60
|
"autoprefixer": "10.4.19",
|
|
61
|
+
"babel-plugin-react-compiler": "19.0.0-beta-df7b47d-20241124",
|
|
61
62
|
"babel-preset-solid": "1.8.19",
|
|
62
63
|
"cssnano-preset-default": "7.0.4",
|
|
63
64
|
"dts-bundle": "0.1.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.
|
|
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",
|
package/scripts/vendors.js
CHANGED
|
@@ -431,6 +431,26 @@ esbuild.build({
|
|
|
431
431
|
],
|
|
432
432
|
});
|
|
433
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
|
+
});
|
|
452
|
+
});
|
|
453
|
+
|
|
434
454
|
// tailwindcss-plugins
|
|
435
455
|
esbuild.build({
|
|
436
456
|
...baseOptions,
|
package/vendor-licenses.md
CHANGED
|
@@ -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)
|