Skip to content

Commit

Permalink
Output ES modules build to .mjs file.
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Aug 27, 2018
1 parent 8193926 commit 5b54e8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.3.4",
"description": "Dailymotion player component for React.",
"main": "dist/react-dailymotion.js",
"module": "dist/react-dailymotion.es.js",
"module": "dist/react-dailymotion.mjs",
"scripts": {
"prepublish": "npm run build",
"build": "ROLLUP=1 rollup -c",
Expand Down
11 changes: 3 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ class Dailymotion extends React.Component {
constructor(props) {
super(props);

this.refContainer = this.refContainer.bind(this);
this.refContainer = (container) => {
this.container = container;
};
}

componentDidMount() {
Expand Down Expand Up @@ -146,13 +148,6 @@ class Dailymotion extends React.Component {
}
}

/**
* @private
*/
refContainer(container) {
this.container = container;
}

render() {
const { id, className } = this.props;

Expand Down

0 comments on commit 5b54e8f

Please sign in to comment.