]> git.proxmox.com Git - mirror_novnc.git/commit
[infra] fix vendor import paths on built files
authorSolly Ross <sross@redhat.com>
Tue, 3 Oct 2017 22:40:52 +0000 (18:40 -0400)
committerSolly Ross <sross@redhat.com>
Tue, 3 Oct 2017 23:30:20 +0000 (19:30 -0400)
commita80955ee7a7479acf3a6c9ec2221bfba22a1d934
tree635b7972125bf62246c445c53c8117b2b98d9d15
parentc4e5a50e09fe44f17c3ac7f81a36b2a9146c3b21
[infra] fix vendor import paths on built files

A previous commit started (quasi-correctly) rewriting vendor import
paths on built files.  The gist of it was correct, but it incorrectly
rewrote paths in vendor itself.

The babel plugin in use operated on canonical absolute paths.  This mean
that it saw no difference between the import
`../vendor/pako/lib/utils/foo` and `../utils/foo`, where the later was
actually in the `vendor/pako/lib/bar` directory.  This rewrote imports
in files in the vendor directory itself.  However, since those files
were *already* in the correct relative location, the new import was
incorrect by a degree of `..`.

Now, we only rewrite vendor paths on things in the `core` directory.
utils/use_require.js