Skip to content
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

code transformed string still retain paths which configred by tsconfig.json #935

Open
ChangeHow opened this issue Mar 9, 2021 · 2 comments

Comments

@ChangeHow
Copy link

Hi,

I use rollup-plugin-esbuild to build file, and i found it's use transform API internal. After build files, i found they are still retain path which configured in tsconfig.json in rootDir.

At first, i think it's maybe the bug from rollup-plugin, but after i used cat path/to/file | esbuild --loader=tsx try to review what esbuild output original, I found there's nothing changed:

~/workspace/neutron refactor/packages*
❯ cat src/components/easy-form/index.tsx | esbuild --loader=tsx
import React from "react";
import get from "lodash/get";
import isNil from "lodash/isNil";
import merge from "lodash/merge";
import isObjectLike from "lodash/isObjectLike";
import {Button, Form} from "zent";
import {EasyFormPreview} from "./components/preview";
import {useFormConfigs} from "./hooks/use-form-configs";
import useUpdateTimes from "@hooks/use-update-times";
import {group} from "./utils/get-group-config";
import {list} from "./utils/get-list-config";
import {invariant} from "./utils/invariant";
import {RenderField} from "./components/render-filed";
import {useFormWatches} from "./hooks/use-form-watches";
import {propWalker} from "./utils/props-walker";
const {useForm, ValidateOption} = Form;

And that my tsconfig.json:

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@components/*": ["./src/components/*"],
      "@utils/*": ["./src/utils/*"],
      "@hooks/*": ["./src/hooks/*"]
    },
    "removeComments": false,
    "strictNullChecks": true,
    "moduleResolution": "Node",
    "esModuleInterop": true,
    "experimentalDecorators": true,
    "jsx": "react",
    "noUnusedParameters": true,
    "noUnusedLocals": true,
    "noImplicitAny": true,
    "target": "es6",
    "lib": ["dom", "es2018"],
    "skipLibCheck": true
  },
  "include": ["./src/**/*"],
  "exclude": ["node_modules", "lib", "es", "__test__"]
}
@ChangeHow
Copy link
Author

same issue but can't fixed my problem.. #394 #60 😢

@RyannGalea
Copy link

Any news on this front? I'm having the same issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants