mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
9 years ago
6 changed files with 27 additions and 7 deletions
@ -1,5 +1,6 @@ |
|||
const nope = method => `Cannot use fs.${method} inside browser`; |
|||
|
|||
export const isFile = () => false; |
|||
export const readdirSync = nope( 'readdirSync' ); |
|||
export const readFileSync = nope( 'readFileSync' ); |
|||
export const writeFile = nope( 'writeFile' ); |
|||
|
@ -0,0 +1,3 @@ |
|||
module.exports = { |
|||
description: 'adds .js to module paths with non-extension dots in them' |
|||
}; |
@ -0,0 +1 @@ |
|||
export default 'fubar'; |
@ -0,0 +1,2 @@ |
|||
import status from './foo.bar'; |
|||
assert.equal( status, 'fubar' ); |
Loading…
Reference in new issue