@llui/vite-plugin 0.0.30 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/transform.d.ts +2 -2
- package/dist/transform.js +3 -3
- package/dist/transform.js.map +1 -1
- package/package.json +1 -1
package/dist/transform.d.ts
CHANGED
|
@@ -34,10 +34,10 @@ export interface UseClientTransformResult {
|
|
|
34
34
|
* - `export function foo() {}` and `export class Foo {}` — rewritten
|
|
35
35
|
* as stubs but the caller may be surprised that `foo` and `Foo` are
|
|
36
36
|
* ComponentDef-shaped objects during SSR.
|
|
37
|
-
* - `export { a, b } from './other'` — re-export forms are not
|
|
37
|
+
* - `export { a, b } from './other.js'` — re-export forms are not
|
|
38
38
|
* detected; they pass through and will still pull `./other` into
|
|
39
39
|
* the SSR graph.
|
|
40
|
-
* - `export * from './other'` — same as above.
|
|
40
|
+
* - `export * from './other.js'` — same as above.
|
|
41
41
|
* - `export type ...` — type exports are erased by TS so nothing to
|
|
42
42
|
* stub; left untouched.
|
|
43
43
|
*/
|
package/dist/transform.js
CHANGED
|
@@ -3304,10 +3304,10 @@ function resolveChain(node, paramName) {
|
|
|
3304
3304
|
* - `export function foo() {}` and `export class Foo {}` — rewritten
|
|
3305
3305
|
* as stubs but the caller may be surprised that `foo` and `Foo` are
|
|
3306
3306
|
* ComponentDef-shaped objects during SSR.
|
|
3307
|
-
* - `export { a, b } from './other'` — re-export forms are not
|
|
3307
|
+
* - `export { a, b } from './other.js'` — re-export forms are not
|
|
3308
3308
|
* detected; they pass through and will still pull `./other` into
|
|
3309
3309
|
* the SSR graph.
|
|
3310
|
-
* - `export * from './other'` — same as above.
|
|
3310
|
+
* - `export * from './other.js'` — same as above.
|
|
3311
3311
|
* - `export type ...` — type exports are erased by TS so nothing to
|
|
3312
3312
|
* stub; left untouched.
|
|
3313
3313
|
*/
|
|
@@ -3365,7 +3365,7 @@ export function transformUseClientSsr(source, _filename) {
|
|
|
3365
3365
|
hasDefaultExport = true;
|
|
3366
3366
|
continue;
|
|
3367
3367
|
}
|
|
3368
|
-
// `export { a, b }` / `export { a } from './x'` / `export * from './x'`
|
|
3368
|
+
// `export { a, b }` / `export { a } from './x.js'` / `export * from './x.js'`
|
|
3369
3369
|
if (ts.isExportDeclaration(stmt)) {
|
|
3370
3370
|
if (stmt.moduleSpecifier) {
|
|
3371
3371
|
warnings.push("[llui/use-client] `export ... from '...'` re-export forms still pull the source module into the SSR graph and bypass stubbing. Either drop the re-export or move the 'use client' directive to the source module.");
|