@steambrew/ttc 2.7.5 → 2.8.6
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/index.js +2 -1
- package/package.json +1 -1
- package/src/transpiler.ts +2 -1
package/dist/index.js
CHANGED
|
@@ -796,7 +796,7 @@ const TranspilerPluginComponent = async (bIsMillennium, pluginJson, props) => {
|
|
|
796
796
|
Logger.Error('The @steambrew/webkit module should not be included in the frontend module, use @steambrew/client instead. Please remove it from the frontend module and try again.');
|
|
797
797
|
process.exit(1);
|
|
798
798
|
}
|
|
799
|
-
return id === '@steambrew/client' || id === 'react' || id === 'react-dom' || id === 'react-dom/client';
|
|
799
|
+
return id === '@steambrew/client' || id === 'react' || id === 'react-dom' || id === 'react-dom/client' || id === 'react/jsx-runtime';
|
|
800
800
|
},
|
|
801
801
|
output: {
|
|
802
802
|
name: 'millennium_main',
|
|
@@ -805,6 +805,7 @@ const TranspilerPluginComponent = async (bIsMillennium, pluginJson, props) => {
|
|
|
805
805
|
react: 'window.SP_REACT',
|
|
806
806
|
'react-dom': 'window.SP_REACTDOM',
|
|
807
807
|
'react-dom/client': 'window.SP_REACTDOM',
|
|
808
|
+
'react/jsx-runtime': 'SP_JSX_FACTORY',
|
|
808
809
|
'@steambrew/client': 'window.MILLENNIUM_API',
|
|
809
810
|
},
|
|
810
811
|
exports: 'named',
|
package/package.json
CHANGED
package/src/transpiler.ts
CHANGED
|
@@ -260,7 +260,7 @@ export const TranspilerPluginComponent = async (bIsMillennium: boolean, pluginJs
|
|
|
260
260
|
process.exit(1);
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
return id === '@steambrew/client' || id === 'react' || id === 'react-dom' || id === 'react-dom/client';
|
|
263
|
+
return id === '@steambrew/client' || id === 'react' || id === 'react-dom' || id === 'react-dom/client' || id === 'react/jsx-runtime';
|
|
264
264
|
},
|
|
265
265
|
output: {
|
|
266
266
|
name: 'millennium_main',
|
|
@@ -269,6 +269,7 @@ export const TranspilerPluginComponent = async (bIsMillennium: boolean, pluginJs
|
|
|
269
269
|
react: 'window.SP_REACT',
|
|
270
270
|
'react-dom': 'window.SP_REACTDOM',
|
|
271
271
|
'react-dom/client': 'window.SP_REACTDOM',
|
|
272
|
+
'react/jsx-runtime': 'SP_JSX_FACTORY',
|
|
272
273
|
'@steambrew/client': 'window.MILLENNIUM_API',
|
|
273
274
|
},
|
|
274
275
|
exports: 'named',
|