mirror of
https://github.com/denoland/deno.git
synced 2024-11-01 09:24:20 -04: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"
|
|
}
|
|
}
|
|
}
|