summaryrefslogtreecommitdiff
path: root/rollup.config.js
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2018-09-06 07:05:14 -0700
committerRyan Dahl <ry@tinyclouds.org>2018-09-06 11:04:56 -0400
commit1e709aa3486ff0700f45c78c07fa57e2c0fd1985 (patch)
tree52189ffd080258689e24ee335639bded48232f2a /rollup.config.js
parentfcdfacc2de72e52b3f82dbce37746d371c3ad3ab (diff)
Fix TypeScript exports in bundle
Diffstat (limited to 'rollup.config.js')
-rw-r--r--rollup.config.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/rollup.config.js b/rollup.config.js
index 3dbe29260..d5574a7d5 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -139,11 +139,13 @@ export default function makeConfig(commandOptions) {
commonjs({
namedExports: {
// Static analysis of `typescript.js` does detect the exports properly, therefore
- // rollup requires them to be explicitly defined to avoid generating warnings
+ // rollup requires them to be explicitly defined to make them available in the
+ // bundle
[typescriptPath]: [
"createLanguageService",
"formatDiagnosticsWithColorAndContext",
"ModuleKind",
+ "ScriptKind",
"ScriptSnapshot",
"ScriptTarget",
"version"