mirror of https://github.com/lukechilds/rollup.git
Rich Harris
8 years ago
8 changed files with 45 additions and 12 deletions
@ -1,6 +1,9 @@ |
|||
module.exports = { |
|||
description: 'allow globals to be exported and imported', |
|||
options: { |
|||
moduleName: 'doc' |
|||
moduleName: 'doc', |
|||
onwarn: warning => { |
|||
if ( warning.code !== 'EMPTY_BUNDLE' ) throw new Error( 'unexpected warning' ); |
|||
} |
|||
} |
|||
}; |
|||
|
@ -1,3 +1,8 @@ |
|||
module.exports = { |
|||
description: 'includes all declarations referenced by reified namespaces' |
|||
description: 'includes all declarations referenced by reified namespaces', |
|||
options: { |
|||
onwarn: warning => { |
|||
if ( warning.code !== 'EMPTY_BUNDLE' ) throw new Error( 'unexpected warning' ); |
|||
} |
|||
} |
|||
} |
|||
|
@ -1,3 +1,8 @@ |
|||
module.exports = { |
|||
description: 'discards a self-calling function without side-effects' |
|||
description: 'discards a self-calling function without side-effects', |
|||
options: { |
|||
onwarn: warning => { |
|||
if ( warning.code !== 'EMPTY_BUNDLE' ) throw new Error( 'unexpected warning' ); |
|||
} |
|||
} |
|||
}; |
|||
|
@ -1,3 +1,8 @@ |
|||
module.exports = { |
|||
description: 'discards function with no side-effects in imported module' |
|||
description: 'discards function with no side-effects in imported module', |
|||
options: { |
|||
onwarn: warning => { |
|||
if ( warning.code !== 'EMPTY_BUNDLE' ) throw new Error( 'unexpected warning' ); |
|||
} |
|||
} |
|||
}; |
|||
|
@ -1,3 +1,8 @@ |
|||
module.exports = { |
|||
description: 'discards effects in conditional expressions with known test values' |
|||
description: 'discards effects in conditional expressions with known test values', |
|||
options: { |
|||
onwarn: warning => { |
|||
if ( warning.code !== 'EMPTY_BUNDLE' ) throw new Error( 'unexpected warning' ); |
|||
} |
|||
} |
|||
}; |
|||
|
@ -1,3 +1,8 @@ |
|||
module.exports = { |
|||
description: 'discards unused function expression assigned to a variable that calls itself and a global' |
|||
description: 'discards unused function expression assigned to a variable that calls itself and a global', |
|||
options: { |
|||
onwarn: warning => { |
|||
if ( warning.code !== 'EMPTY_BUNDLE' ) throw new Error( 'unexpected warning' ); |
|||
} |
|||
} |
|||
}; |
|||
|
@ -1,3 +1,8 @@ |
|||
module.exports = { |
|||
description: 'discards unused function expression assigned to a variable that calls itself and has side effects' |
|||
description: 'discards unused function expression assigned to a variable that calls itself and has side effects', |
|||
options: { |
|||
onwarn: warning => { |
|||
if ( warning.code !== 'EMPTY_BUNDLE' ) throw new Error( 'unexpected warning' ); |
|||
} |
|||
} |
|||
}; |
|||
|
Loading…
Reference in new issue