-
-
Couldn't load subscription status.
- Fork 676
Closed
Description
As mentioned in #1238 (comment), there is a strange problem with path.relative as used in asc since merging asconfig.
In particular
path.relative(".", "module.ts");returns odule.ts in browser builds, but for some reason the following
const path = require("path-browserify");
path.relative(".", "module.ts");returns module.ts as expected. What's known so far:
- webpack bundles path-browserify v0.0.1
- newest version is v1.0.1
- Problem seems to happen here:
exports.relative = function(from, to) { from = exports.resolve(from).substr(1); to = exports.resolve(to).substr(1); // <---
- ?!
In general there appears to be another aspect to this since it's not easily reproducible outside of bundles. If you have any clue, please enlighten me :)