mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
5 changed files with 42 additions and 4 deletions
@ -0,0 +1,4 @@ |
|||
module.exports = { |
|||
description: 'external option gets passed from config', |
|||
command: 'rollup -c' |
|||
}; |
@ -0,0 +1,6 @@ |
|||
'use strict'; |
|||
|
|||
var ___config_js = require('./_config.js'); |
|||
var assert = require('assert'); |
|||
|
|||
assert.ok( ___config_js.execute ); |
@ -0,0 +1,4 @@ |
|||
import { execute } from './_config.js'; |
|||
import { ok } from 'assert'; |
|||
|
|||
ok( execute ); |
@ -0,0 +1,19 @@ |
|||
import assert from 'assert'; |
|||
import { resolve } from 'path'; |
|||
|
|||
var config = resolve( './_config.js' ); |
|||
|
|||
export default { |
|||
entry: 'main.js', |
|||
format: 'cjs', |
|||
|
|||
external: [ 'assert', config ], |
|||
|
|||
plugins: [ |
|||
{ |
|||
load: function ( id ) { |
|||
assert.notEqual( id, config ); |
|||
} |
|||
} |
|||
] |
|||
}; |
Loading…
Reference in new issue