diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2018-10-12 08:23:13 +1100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-11 20:29:43 -0400 |
commit | ec402c6932128d215f78c77661d84472a89b72b1 (patch) | |
tree | 899cfd7895c900300ad6c9199f277377c5d093fb /rollup.config.js | |
parent | fda7aaa10e173bfa8ef864a74a274af69fc01cca (diff) |
Replace globals.d.ts with lib.deno_runtime.d.ts
Diffstat (limited to 'rollup.config.js')
-rw-r--r-- | rollup.config.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/rollup.config.js b/rollup.config.js index 4cb3197f5..55f832585 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -26,12 +26,6 @@ const tsconfigOverride = { } }; -// this is a preamble for the `globals.d.ts` file to allow it to be the default -// lib for deno. -const libPreamble = `/// <reference no-default-lib="true"/> -/// <reference lib="esnext" /> -`; - // this is a rollup plugin which will look for imports ending with `!string` and resolve // them with a module that will inline the contents of the file as a string. Needed to // support `js/assets.ts`. @@ -70,9 +64,7 @@ function strings({ include, exclude } = {}) { transform(code, id) { if (filter(id)) { return { - code: `export default ${JSON.stringify( - id.endsWith("globals.d.ts") ? libPreamble + code : code - )};`, + code: `export default ${JSON.stringify(code)};`, map: { mappings: "" } }; } |