We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@tanstack/start-client-core
1 parent 9266fa1 commit bf23694Copy full SHA for bf23694
packages/start-plugin-core/src/start-compiler-plugin/compilers.ts
@@ -57,12 +57,16 @@ export function compileStartOutputFactory(
57
// find referenced identifiers *before* we transform anything
58
const refIdents = doDce ? findReferencedIdentifiers(ast) : undefined
59
60
+ const validImportSources = [
61
+ `@tanstack/${framework}-start`,
62
+ '@tanstack/start-client-core',
63
+ ]
64
babel.traverse(ast, {
65
Program: {
66
enter(programPath) {
67
programPath.traverse({
68
ImportDeclaration: (path) => {
- if (path.node.source.value !== `@tanstack/${framework}-start`) {
69
+ if (!validImportSources.includes(path.node.source.value)) {
70
return
71
}
72
0 commit comments