#18102 closed defect (fixed)
Build fails if mapped modules are used as dependencies
Reported by: | Colin Snover | Owned by: | Colin Snover |
---|---|---|---|
Priority: | high | Milestone: | 1.9.4 |
Component: | BuildSystem | Version: | 1.7.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
When a user uses dojoConfig.map
, they expect to be able to build code that uses these maps. Currently, the build system does not process any map configuration, which means end-users that attempt to use map
to alias module segments will not be able to build their code.
For example, given the directory structure:
src/ app/ foo.js dojo110/ query.js dojo19/ query.js
and the map configuration:
dojoConfig.map = { '*': { 'dojo': 'dojo110' } };
and a module app/foo
:
define([ 'dojo/query' ], function (query) {});
This code will work in development, correctly translating the module identifier dojo/query
to dojo110/query
, but will fail to build because there is no src/dojo/query.js
.
Patch forthcoming.
Change History (6)
comment:1 Changed 7 years ago by
Status: | new → assigned |
---|
comment:2 Changed 7 years ago by
comment:3 Changed 7 years ago by
1.9.4 has been released, retargeting all open tickets to next milestone.
comment:4 Changed 7 years ago by
Milestone: | 1.9.4 → 1.9.5 |
---|
comment:5 Changed 7 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:6 Changed 7 years ago by
Milestone: | 1.9.5 → 1.9.4 |
---|
Webhooks issues again…
master 6ad2af6c7cc33e061feb0364274e27bacb7e880e 1.10 00884aac64c6a305b9b0236be57833438be7f9ed 1.9 16832475f481363e30dbfa422d5efdf75dcb1f15
Due to I keep forgetting about 1.10 being a thing, this patch didn’t make it into 1.10.1 but will be in 1.10.2. It is in 1.9.4 and master.
https://github.com/dojo/util/pull/22