mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-29 22:02:46 -07:00
feat(packages/vite-plugins): use named export and consistent names across plugins (#260)
This commit is contained in:
committed by
GitHub
parent
d12d8404ec
commit
7b7447f9a0
@@ -4,7 +4,7 @@ import os from 'node:os'
|
||||
import { it, expect, describe } from 'vitest'
|
||||
import type { Plugin } from 'vite'
|
||||
|
||||
import { LazyLoadingPlugin } from '../src'
|
||||
import { TuonoLazyFnPlugin } from '../src'
|
||||
|
||||
type ViteTransformHandler = Exclude<
|
||||
Plugin['transform'],
|
||||
@@ -17,7 +17,7 @@ function getTransform(): (...args: Parameters<ViteTransformHandler>) => string {
|
||||
/** @warning Keep in sync with {@link createBaseViteConfigFromTuonoConfig} */
|
||||
const pluginFilesInclude = /\.(jsx|js|mdx|md|tsx|ts)$/
|
||||
|
||||
return LazyLoadingPlugin({ include: pluginFilesInclude }).transform as never
|
||||
return TuonoLazyFnPlugin({ include: pluginFilesInclude }).transform as never
|
||||
}
|
||||
|
||||
describe('"dynamic" sources', async () => {
|
||||
|
||||
Reference in New Issue
Block a user