mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
9 years ago
4 changed files with 17 additions and 0 deletions
@ -0,0 +1,6 @@ |
|||
module.exports = { |
|||
description: 'allows `export *` from external module, internally', |
|||
options: { |
|||
external: [ 'path' ] |
|||
} |
|||
}; |
@ -0,0 +1,4 @@ |
|||
import { dirname, isRelative } from './path-plus.js'; |
|||
|
|||
assert.equal( dirname( 'foo/bar' ), 'foo' ); |
|||
assert.ok( isRelative( './foo' ) ); |
@ -0,0 +1,5 @@ |
|||
export * from 'path'; |
|||
|
|||
export function isRelative ( path ) { |
|||
return path[0] === '.'; |
|||
} |
Loading…
Reference in new issue