Skip to content

Commit

Permalink
Use default export
Browse files Browse the repository at this point in the history
  • Loading branch information
MICHAEL JACKSON committed Feb 8, 2018
1 parent 5e62e40 commit 2bb5a5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 38 deletions.
8 changes: 1 addition & 7 deletions modules/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
/* eslint-env node */
import Media from "./Media";

// TODO: Remove in the next major release.
Media.Media = Media;

module.exports = Media;
export default from "./Media";
4 changes: 2 additions & 2 deletions scripts/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const replace = require("rollup-plugin-replace");
const resolve = require("rollup-plugin-node-resolve");
const uglify = require("rollup-plugin-uglify");

const getPlugins = env => {
function getPlugins(env) {
const plugins = [resolve()];

if (env) {
Expand Down Expand Up @@ -36,7 +36,7 @@ const getPlugins = env => {
}

return plugins;
};
}

const config = {
input: "modules/index.js",
Expand Down
29 changes: 0 additions & 29 deletions webpack.config.js

This file was deleted.

0 comments on commit 2bb5a5c

Please sign in to comment.