Skip to content

Commit

Permalink
More adjustments to enable testing with fixtures
Browse files Browse the repository at this point in the history
Not worth explaining - just committing as a 'save point' while I fiddle
with the fixtures.
  • Loading branch information
flarnie committed Jun 10, 2017
1 parent 1641237 commit 862b57d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
typeof module !== "undefined"
) {
console.log('successfully tested CommonJS');
console.log('hi');
console.log('require("react") is ', require('react'));
module.exports=f(require('react'))
} else if (
typeof define === "function" &&
Expand Down
8 changes: 4 additions & 4 deletions build/packages/create-react-class/create-react-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
console.log('here in addons');
if (typeof exports === "object" && typeof module !== "undefined") {
console.log('successfully tested Common JS');
module.exports = f();
module.exports = f(require('react'));
} else if (typeof define === "function" && define.amd) {
console.log('successfully tested AMD');
define([], f);
define(['react'], f);
} else {
console.log('successfully tested globals');
var g;
Expand All @@ -21,9 +21,9 @@
if (typeof g.React === "undefined") {
throw Error('React module should be required before createClass');
}
g.createReactClass = f();
g.createReactClass = f(React);
}
})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
})(function(React){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
Expand Down

0 comments on commit 862b57d

Please sign in to comment.