Skip to content

Commit

Permalink
Switch to rollup-plugin-typescript2 (#2460)
Browse files Browse the repository at this point in the history
* Switch to rollup-plugin-typescript2

* Update other dependencies
  • Loading branch information
lukastaegert committed Sep 16, 2018
1 parent 4d1a976 commit 594d24c
Show file tree
Hide file tree
Showing 13 changed files with 566 additions and 1,039 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -13,3 +13,4 @@ test/hooks/tmp
test/tmp
test/typescript/typings
perf/
.rpt2_cache/
4 changes: 3 additions & 1 deletion browser/fs.ts
@@ -1,4 +1,6 @@
const nope = (method: string) => `Cannot use fs.${method} inside browser`;
const nope = (method: string) => (..._args: any[]): any => {
throw new Error(`Cannot use fs.${method} inside browser`);
};

export const lstatSync = nope('lstatSync');
export const readdirSync = nope('readdirSync');
Expand Down

0 comments on commit 594d24c

Please sign in to comment.