mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-05-17 08:10:59 -04:00
Remove ./src/environment from Webpack config and bind environment to window. Resolves GH-199.
This commit is contained in:
parent
0bfd6e1430
commit
06de644ae6
5 changed files with 12 additions and 19 deletions
src/lib
|
@ -15,11 +15,9 @@ var render = function (jsx, element) {
|
|||
element
|
||||
);
|
||||
|
||||
// If in production, provide list of rendered components
|
||||
if (process.env.NODE_ENV != 'production') {
|
||||
window._renderedComponents = window._renderedComponents || [];
|
||||
window._renderedComponents.push(component);
|
||||
}
|
||||
// Provide list of rendered components
|
||||
window._renderedComponents = window._renderedComponents || [];
|
||||
window._renderedComponents.push(component);
|
||||
};
|
||||
|
||||
module.exports = render;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue