Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
Upgrade webpack for umd default export. #969
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-roemer committed Feb 8, 2018
1 parent 1aa5743 commit 9526ded
Show file tree
Hide file tree
Showing 5 changed files with 1,229 additions and 113 deletions.
2 changes: 1 addition & 1 deletion examples/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
chunkFilename: '[chunkhash].js'
},
module: {
loaders: [
rules: [
{
test: /\.js$/,
include: [__dirname, path.resolve(__dirname, '../src')],
Expand Down
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = function(config) {
webpack: {
cache: true,
module: {
loaders: [
rules: [
{
test: /\.js$/,
enforce: 'pre',
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"prop-types": "^15.5.8",
"publishr": "^1.0.0",
"rimraf": "^2.6.1",
"webpack": "^2.2.1"
"webpack": "^3.10.0"
},
"peerDependencies": {
"react": "^15.3.0 || ^16.0.0"
Expand Down Expand Up @@ -107,7 +107,7 @@
"react-test-renderer": "^16.0.0",
"sinon": "^1.17.7",
"sinon-chai": "^2.8.0",
"webpack-dev-server": "^2.4.2"
"webpack-dev-server": "^2.11.1"
},
"publishr": {
"dependencies": [
Expand Down
5 changes: 3 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ module.exports = {
path: path.join(__dirname, 'dist'),
filename: 'radium.js',
library: 'Radium',
libraryTarget: 'umd'
libraryTarget: 'umd',
libraryExport: 'default'
},
module: {
loaders: [
rules: [
{
test: /\.js$/,
include: [path.join(__dirname, 'src')],
Expand Down
Loading

0 comments on commit 9526ded

Please sign in to comment.