Bug: @snowpack/plugin-babel strips out extensions from processed files #2425
Unanswered
jonrimmer
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use the Babel plugin to process all files in my project with the extension:
.styles.ts
, in order to run babel-plugin-styled-components against them. However, if I have files called calledapp.tsx
andapp.styles.ts
in my project, then running Babel on the latter produces a file calledapp.js
which overrides the correct version.This seems to be because the plugin is hardcoded to output
.js
files, and isn't smart enough to retain extra extensions.Beta Was this translation helpful? Give feedback.
All reactions