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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

types.d.ts file bugs #7466

Closed
izengliang opened this issue Dec 18, 2021 · 1 comment
Closed

types.d.ts file bugs #7466

izengliang opened this issue Dec 18, 2021 · 1 comment

Comments

@izengliang
Copy link

馃悰 bug report

src/index.ts

import { LitElement, css, html } from "lit";

dist/types.d.ts

import { LitElement as  } from "lit"; // bugs

馃帥 Configuration (.babelrc, package.json, cli command)

.parcelrc

{
  "extends": "@parcel/config-default",
  "transformers": {
    "*.{ts,tsx}": ["@parcel/transformer-typescript-tsc"]
  }
}

tsconfig.json

{
  "compilerOptions": {
    "target": "es6",
    "strict": false,
    "allowSyntheticDefaultImports": true,
    "experimentalDecorators": true,
    "jsxImportSource": "preact",
    "isolatedModules": true,
    "esModuleInterop": true,
    "moduleResolution": "Node",
    "module": "es2020",
    "resolveJsonModule": true,
    "strictNullChecks": false
  }
}

馃實 Your Environment

Software Version(s)
Parcel 2.0.1
Node v14.17.6
npm/Yarn npm@7.24.1
Operating System macOs 11.4
@Shinyaigeek
Copy link
Contributor

Shinyaigeek commented Dec 18, 2021

Thank you for reporting!
This issue seems to be dup of #7325, and seems to be fixed in #7426. it works fine with the current v2 branch.

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