mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 01:29:14 -05:00
c6c8c91a6e
This commit changes handling of config file to enable specifying "imports" and "scopes" objects effectively making the configuration file an import map. "imports" and "scopes" take precedence over "importMap" configuration, but have lower priority than "--importmap" CLI flag. Co-authored-by: David Sherret <dsherret@users.noreply.github.com> Co-authored-by: David Sherret <dsherret@gmail.com>
15 lines
333 B
JSON
15 lines
333 B
JSON
{
|
|
"importMap": "./import_map.json",
|
|
"imports": {
|
|
"moment": "./moment/moment.ts",
|
|
"moment/": "./moment/",
|
|
"lodash": "./lodash/lodash.ts",
|
|
"lodash/": "./lodash/",
|
|
"https://www.unpkg.com/vue/dist/vue.runtime.esm.js": "./vue.ts"
|
|
},
|
|
"scopes": {
|
|
"scope/": {
|
|
"moment": "./scoped_moment.ts"
|
|
}
|
|
}
|
|
}
|