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

@parcel/transformer-raw adds a dot at the end of filename #9686

Open
kalucky0 opened this issue May 2, 2024 · 1 comment
Open

@parcel/transformer-raw adds a dot at the end of filename #9686

kalucky0 opened this issue May 2, 2024 · 1 comment

Comments

@kalucky0
Copy link

kalucky0 commented May 2, 2024

@parcel/transformer-raw adds a dot at the end of a filename turning file into file.

├── public
│   ├── CNAME
└── dist
    └── CNAME.

🎛 Configuration

.parcelrc

{
  "extends": "@parcel/config-default",
  "transformers": {
    "public/**/*": [
      "@parcel/transformer-raw"
    ]
  }
}

package.json

{
  "name": "website",
  "source": "src/index.html",
  "scripts": {
    "start": "parcel",
    "build": "parcel build src/index.html",
    "postbuild": "parcel build public/**/*"
  },
  "devDependencies": {
    "parcel": "latest"
  }
}

🌍 Environment

Software Version
Parcel v2.12.2
Node v22.0.0
npm v10.5.2
Operating System Windows 11 Pro [10.0.22631 Build 22631]
@mischnic
Copy link
Member

mischnic commented May 2, 2024

I suspect this isn't actually caused by the raw transformer but by Parcel core itself, because there are various places where it does basename + "." + type.

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