Skip to content

Commit

Permalink
Merge pull request rollup#57 from maranomynet/patch-1
Browse files Browse the repository at this point in the history
Document default values for options
  • Loading branch information
Rich-Harris committed Apr 11, 2016
2 parents 13d64f0 + 168fabb commit 60958c6
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,25 @@ rollup({
main: true
}),

// non-CommonJS modules will be ignored, but you can also
// specifically include/exclude files
commonjs({
include: 'node_modules/**',
exclude: [ 'node_modules/foo/**', 'node_modules/bar/**' ],
// non-CommonJS modules will be ignored, but you can also
// specifically include/exclude files
include: 'node_modules/**', // Default: undefined
exclude: [ 'node_modules/foo/**', 'node_modules/bar/**' ], // Default: undefined

// search for files other than .js files (must already
// be transpiled by a previous plugin!)
extensions: [ '.js', '.coffee' ], // defaults to [ '.js' ]
extensions: [ '.js', '.coffee' ], // Default: [ '.js' ]

// if true then uses of `global` won't be dealt with by this plugin
ignoreGlobal: false
ignoreGlobal: false, // Default: false

// if false then skip sourceMap generation for CommonJS modules
sourceMap: false, // Default: true

// explicitly specify unresolvable named exports
// (see below for more details)
namedExports: { './module.js': ['foo', 'bar' ] } // Default: undefined
})
]
}).then(...)
Expand Down

0 comments on commit 60958c6

Please sign in to comment.