mirror of https://github.com/lukechilds/rollup.git
5 changed files with 32 additions and 0 deletions
@ -0,0 +1,7 @@ |
|||||
|
module.exports = { |
||||
|
description: 'does not rename class methods incorrectly', |
||||
|
options: { |
||||
|
external: [ 'path' ] |
||||
|
}, |
||||
|
babel: true |
||||
|
}; |
@ -0,0 +1,8 @@ |
|||||
|
import { bar } from 'path'; // path, so the test doesn't fail for unrelated reasons...
|
||||
|
|
||||
|
export default class Foo { |
||||
|
bar () { |
||||
|
if ( false ) return bar(); |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,3 @@ |
|||||
|
import Foo from './foo'; |
||||
|
|
||||
|
assert.ok( new Foo().bar() ); |
@ -0,0 +1,12 @@ |
|||||
|
var path = require( 'path' ); |
||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'ensures external modules have correct names', |
||||
|
options: { |
||||
|
external: [ 'path' ] |
||||
|
}, |
||||
|
exports: function ( exports ) { |
||||
|
assert.equal( exports, path.sep ); |
||||
|
} |
||||
|
}; |
@ -0,0 +1,2 @@ |
|||||
|
import { sep } from 'path'; |
||||
|
export default sep; |
Loading…
Reference in new issue