mirror of https://github.com/lukechilds/rollup.git
Rich Harris
10 years ago
15 changed files with 78 additions and 40 deletions
@ -0,0 +1,8 @@ |
|||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'sorts statements according to their original order within modules', |
||||
|
exports: function ( exports ) { |
||||
|
assert.equal( exports, 'GREAT SUCCESS' ); |
||||
|
} |
||||
|
}; |
@ -0,0 +1 @@ |
|||||
|
export default 'GREAT SUCCESS'; |
@ -0,0 +1,15 @@ |
|||||
|
import baz from './baz'; |
||||
|
|
||||
|
export function Foo () {} |
||||
|
|
||||
|
Foo.prototype.test = function () { |
||||
|
return 'nope'; |
||||
|
}; |
||||
|
|
||||
|
export function Bar () {} |
||||
|
|
||||
|
Bar.prototype = Object.create( Foo.prototype ); |
||||
|
|
||||
|
Bar.prototype.test = function () { |
||||
|
return baz; |
||||
|
}; |
@ -0,0 +1,4 @@ |
|||||
|
import { Foo, Bar } from './foobar'; |
||||
|
|
||||
|
new Foo(); |
||||
|
export default new Bar().test(); |
Loading…
Reference in new issue