Skip to content

Commit

Permalink
Revert #651
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Mar 14, 2018
1 parent 03c42a7 commit a0f6679
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 24 deletions.
3 changes: 2 additions & 1 deletion DayPicker.dist.js
Expand Up @@ -5,6 +5,7 @@
/* eslint-disable no-var */
/* eslint-env node */

var DayPicker = require('./src').default;
var DayPicker = require('./src/DayPicker').default;
DayPicker.Input = require('./src/DayPickerInput').default;

module.exports = DayPicker;
8 changes: 4 additions & 4 deletions DayPicker.js
Expand Up @@ -5,13 +5,13 @@
/* eslint-disable no-var */
/* eslint-env node */

var DayPicker = require('./lib/src');
var Weekday = require('./lib/src/Weekday');
var Navbar = require('./lib/src/Navbar');
var PropTypes = require('./lib/src/PropTypes');
var DayPicker = require('./lib/src/DayPicker');
var DateUtils = require('./lib/src/DateUtils');
var LocaleUtils = require('./lib/src/LocaleUtils');
var ModifiersUtils = require('./lib/src/ModifiersUtils');
var Weekday = require('./lib/src/Weekday');
var Navbar = require('./lib/src/Navbar');
var PropTypes = require('./lib/src/PropTypes');

module.exports = DayPicker;
module.exports.DateUtils = DateUtils;
Expand Down
16 changes: 4 additions & 12 deletions src/index.js
@@ -1,12 +1,4 @@
import DayPicker from './DayPicker';
import Input from './DayPickerInput';
import * as DateUtils from './DateUtils';
import * as LocaleUtils from './LocaleUtils';
import * as ModifiersUtils from './ModifiersUtils';

DayPicker.Input = Input;
DayPicker.DateUtils = DateUtils;
DayPicker.LocaleUtils = LocaleUtils;
DayPicker.ModifiersUtils = ModifiersUtils;

export { DayPicker as default, DateUtils, LocaleUtils, ModifiersUtils };
export default from './DayPicker';
export DateUtils from './DateUtils';
export LocaleUtils from './LocaleUtils';
export ModifiersUtils from './ModifiersUtils';
7 changes: 0 additions & 7 deletions webpack.config.js
@@ -1,8 +1,6 @@
/* eslint global-require: 0, import/no-extraneous-dependencies: 0 */
/* eslint-env node */

const webpack = require('webpack');

const isProduction = process.env.NODE_ENV === 'production';

module.exports = {
Expand Down Expand Up @@ -31,11 +29,6 @@ module.exports = {
},
],
},
plugins: [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
})
],
externals: {
react: {
root: 'React',
Expand Down

0 comments on commit a0f6679

Please sign in to comment.