mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
9 years ago
3 changed files with 27 additions and 2 deletions
@ -0,0 +1,18 @@ |
|||||
|
var path = require( 'path' ); |
||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'plugins can manipulate the options object', |
||||
|
options: { |
||||
|
plugins: [ |
||||
|
{ |
||||
|
options: function ( options ) { |
||||
|
options.entry = path.resolve( __dirname, 'answer.js' ); |
||||
|
} |
||||
|
} |
||||
|
] |
||||
|
}, |
||||
|
exports: function ( answer ) { |
||||
|
assert.equal( answer, 42 ); |
||||
|
} |
||||
|
} |
@ -0,0 +1 @@ |
|||||
|
export default 42; |
Loading…
Reference in new issue