mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
8 years ago
13 changed files with 37 additions and 7 deletions
@ -1,3 +1,6 @@ |
|||||
module.exports = { |
module.exports = { |
||||
description: 'ensures bundle imports are deconflicted (#659)' |
description: 'ensures bundle imports are deconflicted (#659)', |
||||
|
options: { |
||||
|
external: [ 'foo', 'bar' ] |
||||
|
} |
||||
}; |
}; |
||||
|
@ -1,6 +1,7 @@ |
|||||
module.exports = { |
module.exports = { |
||||
description: 'correctly exports a default import, even in ES mode (#513)', |
description: 'correctly exports a default import, even in ES mode (#513)', |
||||
options: { |
options: { |
||||
|
external: [ 'x' ], |
||||
moduleName: 'myBundle' |
moduleName: 'myBundle' |
||||
} |
} |
||||
}; |
}; |
||||
|
@ -1,6 +1,9 @@ |
|||||
module.exports = { |
module.exports = { |
||||
description: 'prefixes global names with `global.` when creating UMD bundle (#57)', |
description: 'prefixes global names with `global.` when creating UMD bundle (#57)', |
||||
options: { |
options: { |
||||
external: [ 'factory', 'baz', 'shipping-port', 'alphabet' ] |
external: [ 'factory', 'baz', 'shipping-port', 'alphabet' ], |
||||
|
onwarn: warning => { |
||||
|
if ( warning.code !== 'UNUSED_EXTERNAL_IMPORT' ) throw new Error( 'unexpected warning' ); |
||||
|
} |
||||
} |
} |
||||
}; |
}; |
||||
|
@ -1,3 +1,6 @@ |
|||||
module.exports = { |
module.exports = { |
||||
description: 'disinguishes between external default and namespace (#637)' |
description: 'disinguishes between external default and namespace (#637)', |
||||
|
options: { |
||||
|
external: [ 'foo' ] |
||||
|
} |
||||
}; |
}; |
||||
|
@ -1,6 +1,7 @@ |
|||||
module.exports = { |
module.exports = { |
||||
description: 'external paths (#754)', |
description: 'external paths (#754)', |
||||
options: { |
options: { |
||||
|
external: [ 'foo' ], |
||||
paths: id => `https://unpkg.com/${id}` |
paths: id => `https://unpkg.com/${id}` |
||||
} |
} |
||||
}; |
}; |
||||
|
@ -1,3 +1,8 @@ |
|||||
module.exports = { |
module.exports = { |
||||
description: 'omits ES5 classes which are pure (e.g. they only assign to `this`)' |
description: 'omits ES5 classes which are pure (e.g. they only assign to `this`)', |
||||
|
options: { |
||||
|
onwarn ( warning ) { |
||||
|
if ( warning.code !== 'THIS_IS_UNDEFINED' ) throw new Error( 'unexpected warning' ); |
||||
|
} |
||||
|
} |
||||
}; |
}; |
||||
|
@ -1,5 +1,9 @@ |
|||||
const assert = require( 'assert' ); |
|
||||
|
|
||||
module.exports = { |
module.exports = { |
||||
description: 'excludes unused imports ([#595])' |
description: 'excludes unused imports ([#595])', |
||||
|
options: { |
||||
|
external: [ 'external' ], |
||||
|
onwarn ( warning ) { |
||||
|
if ( warning.code !== 'UNUSED_EXTERNAL_IMPORT' && warning.code !== 'EMPTY_BUNDLE' ) throw new Error( 'unexpected warning' ); |
||||
|
} |
||||
|
} |
||||
}; |
}; |
||||
|
Loading…
Reference in new issue