diff --git a/.babelrc b/.babelrc index 42ee619..6ea565f 100644 --- a/.babelrc +++ b/.babelrc @@ -1,7 +1,11 @@ { "presets": [ - "es2015", + "es2015-ie", "react", "stage-0" + ], + "plugins": [ + "add-module-exports", + "transform-decorators-legacy" ] } \ No newline at end of file diff --git a/package.json b/package.json index 4292ee6..a92e4a0 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,9 @@ "devDependencies": { "babel-cli": "^6.26.0", "babel-loader": "^7.1.2", - "babel-preset-es2015": "^6.24.1", + "babel-plugin-add-module-exports": "^0.2.1", + "babel-plugin-transform-decorators-legacy": "^1.3.4", + "babel-preset-es2015-ie": "^6.7.0", "babel-preset-react": "^6.24.1", "babel-preset-stage-0": "^6.24.1", "create-react-class": "^15.6.0", diff --git a/src/DPlayer.js b/src/DPlayer.js index b5c3505..2d678d0 100644 --- a/src/DPlayer.js +++ b/src/DPlayer.js @@ -112,4 +112,4 @@ DPlayerComponent.propTypes = { }), }; -export default DPlayerComponent; \ No newline at end of file +export default DPlayerComponent; \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index b737185..6f915ae 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -23,7 +23,7 @@ const baseWebpackConfig = { amd: 'react', }, [`dplayer`]: "DPlayer", - [`dplayer/dist/DPlayer.min.css`]: "null", + [`dplayer/dist/DPlayer.min.css`]: "undefined", }, devtool: '#sourcemap', resolve: {