-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This util doesn't work in this project #125
Comments
Unfortunately, I'm unable to reproduce that using your project. Here are the steps I took: git clone https://github.com/zyf0330/transform-paths-demo/tree/main
cd transform-paths-demo
npm install
cd packages/b
npm run build This is the compiled result (from index2.js): exports.src1 = void 0;
// import * as src1 from "../src1/index1"
const src1 = __importStar(require("../../../built/packages/a/src/index1"));
exports.src1 = src1;
console.log('in src2', src1.E);
const _2_1 = require("./2");
console.log('two', _2_1.s); I recommend erasing If it still does not work and you have new steps which can reproduce the problem, please let me know, and I'll have a look. |
|
Ah I see. Sorry about that, you're right. I thought you meant it didn't transform at all. I will try to take a closer look this weekend. |
Ok, sorry for the delay on this one. Thanks again for bringing it to my attention! Turns out the plugin wasn't playing well with project references. The problem happened when the referenced file was outside of the current project. Weird stuff to do with how TypeScript handles resolution paths. Should be sorted out now in |
Hello, I find that this transformer doesn't work in one scene. I create a demo repo https://github.com/zyf0330/transform-paths-demo/tree/main, just follows README.
The text was updated successfully, but these errors were encountered: