Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
Configure dist output to use UMD format (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
josh authored and sophiebits committed Apr 6, 2017
1 parent 8cd420b commit 3894c64
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,28 @@ var buildDist = function(opts) {
var webpackOpts = {
debug: opts.debug,
externals: {
immutable: 'Immutable',
react: 'React',
'react-dom': 'ReactDOM',
immutable: {
root: 'Immutable',
commonjs2: 'immutable',
commonjs: 'immutable',
amd: 'immutable',
},
react: {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react',
},
'react-dom': {
root: 'ReactDOM',
commonjs2: 'react-dom',
commonjs: 'react-dom',
amd: 'react-dom',
},
},
output: {
filename: opts.output,
libraryTarget: 'var',
libraryTarget: 'umd',
library: 'Draft',
},
plugins: [
Expand Down

0 comments on commit 3894c64

Please sign in to comment.