mirror of https://github.com/lukechilds/rollup.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
367 B
25 lines
367 B
import assert from 'assert';
|
|
import { resolve, sep } from 'path';
|
|
|
|
var config = resolve( './_config.js' ).split(sep).join('/');
|
|
|
|
export default {
|
|
entry: 'main.js',
|
|
format: 'cjs',
|
|
|
|
external: function (id) {
|
|
if (id === config) {
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
},
|
|
|
|
plugins: [
|
|
{
|
|
load: function ( id ) {
|
|
assert.notEqual( id, config );
|
|
}
|
|
}
|
|
]
|
|
};
|
|
|