Closed talss89 closed 1 year ago
Not sure why it works in the integration test and in other contexts but breaks in this simple reproduction.
I made a sandbox that replicates the issue, explains it (rather, explains my interpretation of it), and fixes it:
https://codesandbox.io/p/sandbox/hopeful-kate-glcvn4?file=%2Fbud.config.mjs
I'll probably apply a similar solution (using bud.js APIs) as a patch before circling back on figuring out why the integration tests are passing.
Thanks @kellymears - I've patched my bud.config.js
as you describe, and it's all working now. I did notice the test pass - very strange.
I think a very similar fix (plucking .scss
rule from oneOf and moving it out into the top-level ruleset) might fix the issue from #2080 as well. Not confirmed yet.
https://github.com/roots/bud/issues/2081#issuecomment-1416535399
I was wrong about this but it should be fixed by #2082. Guess we'll find out when nightly
releases in a bit.
Agreement
Describe the issue
When using
<script setup lang='ts'>
syntax in a Vue 3 SFC, Bud fails to build in dev and prod.Removing
lang='ts'
results in a working buildExpected Behavior
The build completes with no errors, SFC runs with expected
<script setup>
behaviour.Actual Behavior
It seems like the loader is emitting TS, but being processed as JS. I don't know enough about the process to comment further.
Steps To Reproduce
examples/vue-typescript
@roots/bud-sass
dependency (to bypass #2080)<style lang="scss">
blocks from both SFCsyarn run bud dev
version
6.8.0 / 2023.2.3
Logs
Configuration
Relevant .budfiles