Skip to content

Commit

Permalink
release v0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
JserWang committed Sep 6, 2018
1 parent 3833f4c commit 76f36f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/config/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ const merge = require('webpack-merge');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const BundleAnalyzer = require('webpack-bundle-analyzer');
// const BundleAnalyzer = require('webpack-bundle-analyzer');
const common = require('./webpack.common');

const { BundleAnalyzerPlugin } = BundleAnalyzer;
// const { BundleAnalyzerPlugin } = BundleAnalyzer;

module.exports = merge(common, {
mode: 'production',
Expand Down Expand Up @@ -57,6 +57,6 @@ module.exports = merge(common, {
filename: '[name].[contenthash:12].css',
chunkFilename: '[name].[contenthash:12].css', // use contenthash *
}),
new BundleAnalyzerPlugin(),
// new BundleAnalyzerPlugin(),
],
});
4 changes: 3 additions & 1 deletion lib/components/AutoComplete/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ var AutoComplete = (0, _ReactComponent2.default)(_class = function () {
_classCallCheck(this, AutoComplete);

this.destroy = function () {
_this.instance.dispose();
if (_this.instance.dispose) {
_this.instance.dispose();
}
};

this.props = props;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rc-bmap",
"version": "0.2.3",
"version": "0.2.4",
"main": "lib/index.js",
"typings": "types/index.d.ts",
"repository": {
Expand Down

0 comments on commit 76f36f5

Please sign in to comment.