Skip to content

Instantly share code, notes, and snippets.

@NMinhNguyen
NMinhNguyen / diff.diff
Last active Feb 28, 2020
react-test-renderer/shallow bundle diff between react-shallow-renderer 16.12.0 and 16.13.0
View diff.diff
diff --git a/build/node_modules/react-test-renderer/package.json b/../react-test-renderer/package.json
index b1ab08fe6..ccfb6b8f1 100644
--- a/build/node_modules/react-test-renderer/package.json
+++ b/../react-test-renderer/package.json
@@ -21,7 +21,7 @@
"dependencies": {
"object-assign": "^4.1.1",
"react-is": "^16.8.6",
- "react-shallow-renderer": "^16.12.0",
+ "react-shallow-renderer": "^16.13.0",
View react-test-renderer-shallow.development.cjs.js
/** @license React vundefined
* react-test-renderer-shallow.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
@NMinhNguyen
NMinhNguyen / multiKeyStore-fns.dev.diff
Last active Oct 15, 2018
webpack diff without mangling so it's more readable
View multiKeyStore-fns.dev.diff
diff --git a/examples/ssr/build/bundle.js b/examples/ssr/build/bundle.js
index c49fadece..e4fb0ad97 100644
--- a/examples/ssr/build/bundle.js
+++ b/examples/ssr/build/bundle.js
@@ -9880,30 +9880,31 @@
Object.defineProperty(exports, '__esModule', {
value: true,
});
- exports.default = void 0;
+ exports.set = set;
@NMinhNguyen
NMinhNguyen / diff.diff
Last active May 21, 2018
transform-object-assign-require for Babel 7
View diff.diff
diff --git a/scripts/babel/transform-object-assign-require.js b/scripts/babel/transform-object-assign-require.js
index 2d4d8203b..d98591c16 100644
--- a/scripts/babel/transform-object-assign-require.js
+++ b/scripts/babel/transform-object-assign-require.js
@@ -7,12 +7,16 @@
'use strict';
+const {addDefault} = require('@babel/helper-module-imports');
+
View ag-grid-react.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('react-dom'), require('ag-grid'), require('prop-types'), require('react-dom-factories')) :
typeof define === 'function' && define.amd ? define(['exports', 'react', 'react-dom', 'ag-grid', 'prop-types', 'react-dom-factories'], factory) :
(factory((global.AgGridReact = {}),global.React,global.ReactDOM,global.agGrid,global.PropTypes,global.ReactDOMFactories));
}(this, (function (exports,React,ReactDOM,AgGrid,PropTypes,DOM) { 'use strict';
function __extends(d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
View App.js
import React, { Component } from 'react';
import { BrowserRouter as Router, Link, Route } from 'react-router-dom';
import Root from './Root';
import Sidebar from './Sidebar';
import SidebarItem from './SidebarItem';
import Main from './Main';
import Gist from './Gist';
// import logo from './logo.svg';
import './App.css';