denoland / dnt

Deno to npm package build tool.
MIT License
1.21k stars 38 forks source link

[Feature Request] Regex-based mappings #151

Open qwtel opened 2 years ago

qwtel commented 2 years ago

It would be very nice if something like this was supported:

mappings: {
  "https://esm.sh/(@?[^@]+)@([^/]+)/(.*).js": {
    name: "$1",
    version: "^$2",
    subPath: "$3.js",
  },
},
dsherret commented 1 year ago

More discussion in https://github.com/denoland/dnt/issues/308