Skip to content

Commit 2bb5a5c

Browse files
author
MICHAEL JACKSON
committed
Use default export
1 parent 5e62e40 commit 2bb5a5c

File tree

3 files changed

+3
-38
lines changed

3 files changed

+3
-38
lines changed

modules/index.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
/* eslint-env node */
2-
import Media from "./Media";
3-
4-
// TODO: Remove in the next major release.
5-
Media.Media = Media;
6-
7-
module.exports = Media;
1+
export default from "./Media";

scripts/config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const replace = require("rollup-plugin-replace");
44
const resolve = require("rollup-plugin-node-resolve");
55
const uglify = require("rollup-plugin-uglify");
66

7-
const getPlugins = env => {
7+
function getPlugins(env) {
88
const plugins = [resolve()];
99

1010
if (env) {
@@ -36,7 +36,7 @@ const getPlugins = env => {
3636
}
3737

3838
return plugins;
39-
};
39+
}
4040

4141
const config = {
4242
input: "modules/index.js",

webpack.config.js

-29
This file was deleted.

0 commit comments

Comments
 (0)