We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1398e29 + 28bce67 commit 32b9087Copy full SHA for 32b9087
2 files changed
packages/solid-styled/compiler/index.ts
@@ -27,7 +27,7 @@ export async function compile(
27
const plugins: NonNullable<
28
NonNullable<babel.TransformOptions['parserOpts']>['plugins']
29
> = ['jsx'];
30
- if (/\.[mc]?tsx?$/i.test(id)) {
+ if (/\.[mc]?tsx?$/i.test(id.split('?')[0])) {
31
plugins.push('typescript');
32
}
33
const result = await babel.transformAsync(code, {
packages/unplugin/src/index.ts
@@ -57,7 +57,7 @@ const solidStyledPlugin = createUnplugin(
57
return {
58
name: 'solid-styled',
59
transformInclude(id): boolean {
60
- return filter(id);
+ return filter(id.split('?')[0]);
61
},
62
async transform(code, id): Promise<TransformResult> {
63
return compile(id, code, {
0 commit comments