Skip to content

Commit 442c10f

Browse files
committed
Merge branch 'hotfix/error-importing'
2 parents d0d631f + 8f5db57 commit 442c10f

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [0.2.0] - 2018-03-12
8+
### Fix
9+
- Webpack config that was causing error(s) when trying to import as a npm package.
10+
711
## [0.1.1] - 2018-03-12
812
### Added
913
- This CHANGELOG
1014
- production build
1115

12-
[0.2.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.1.0...v0.1.1
16+
[0.2.0]: https://github.com/factor1/react-card-flipper/compare/v0.1.1...v0.2.0
17+
[0.1.1]: https://github.com/factor1/react-card-flipper/compare/v0.1.0...v0.1.1

dist/ReactCardFlipper.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webpack.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ module.exports = env => {
66
entry: env.production ? ['babel-polyfill', './ReactCardFlipper.js'] : ['babel-polyfill', './Test.js'],
77
output: {
88
filename: env.production ? 'ReactCardFlipper.js' : 'test_bundle.js',
9-
path: env.production ? path.resolve(__dirname, 'dist') : path.resolve(__dirname, 'tests')
9+
path: env.production ? path.resolve(__dirname, 'dist') : path.resolve(__dirname, 'tests'),
10+
library: 'ReactCardFlipper',
11+
libraryTarget: 'umd'
1012
},
1113
devServer: {
1214
contentBase: './tests'

0 commit comments

Comments
 (0)