Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
add babel-plugin-add-module-exports
Browse files Browse the repository at this point in the history
add babel-plugin-transform-decorators-legacy
modify babel-preset-es2015 to babel-preset-es2015-ie
  • Loading branch information
hnsylitao committed Aug 23, 2017
1 parent a2e6f78 commit bd25c7a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"presets": [
"es2015",
"es2015-ie",
"react",
"stage-0"
],
"plugins": [
"add-module-exports",
"transform-decorators-legacy"
]
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/DPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ DPlayerComponent.propTypes = {
}),
};

export default DPlayerComponent;
export default DPlayerComponent;
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit bd25c7a

Please sign in to comment.