Skip to content

0.20.0

Choose a tag to compare

@dsherret dsherret released this 18 Feb 20:36
· 171 commits to main since this release
1e8411b
  • feat: combine mappings and redirects (#129)
  • feat: inject import declarations after leading trivia (#130)

This release combines the concept of "redirects" and "mappings" into just "mappings".

Before:

await build({
  // ...etc...
  mappings: {
    "https://deno.land/x/code_block_writer@11.0.0/mod.ts": {
      name: "code-block-writer",
      version: "^11.0.0",
    },
  },
  redirects: {
    "./file.deno.ts": "./file.node.ts",
  },
});

After:

await build({
  // ...etc...
  mappings: {
    "https://deno.land/x/code_block_writer@11.0.0/mod.ts": {
      name: "code-block-writer",
      version: "^11.0.0",
    },
    "./file.deno.ts": "./file.node.ts",
  },
});