From 9f9073f3a7af0c95cf8799167386ccf2b00a2233 Mon Sep 17 00:00:00 2001 From: Joscha Feth Date: Thu, 11 Oct 2018 13:06:07 +1100 Subject: [PATCH] docs: Use commonjs module format Otherwise fails with: ``` 'export { hello };', '^^^^^^', '', 'SyntaxError: Unexpected token export', ``` if it was set to `"module": "ESNext"` --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 16b7d00a..0cb08fef 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ The default `tsconfig.json` file used by the plugin looks like this: "target": "es5", "outDir": ".build", "moduleResolution": "node", + "module": "commonjs", "lib": ["es2015"], "rootDir": "./" }