vite-plugin-swc-transform
Advanced tools
Comparing version 0.5.0-beta.1 to 1.0.0-alpha.1
@@ -34,3 +34,4 @@ import { createFilter } from '@rollup/pluginutils'; | ||
return { | ||
esbuild: false | ||
esbuild: false, | ||
target: "esnext" | ||
}; | ||
@@ -37,0 +38,0 @@ }, |
@@ -16,73 +16,74 @@ import type { JscConfig } from "@swc/core"; | ||
syntax: "typescript"; | ||
tsx?: boolean | undefined; | ||
tsx?: boolean; | ||
decorators: boolean; | ||
dynamicImport?: boolean | undefined; | ||
dynamicImport?: boolean; | ||
decoratorsBeforeExport: boolean; | ||
} | { | ||
syntax: "ecmascript"; | ||
jsx?: boolean | undefined; | ||
numericSeparator?: boolean | undefined; | ||
classPrivateProperty?: boolean | undefined; | ||
privateMethod?: boolean | undefined; | ||
classProperty?: boolean | undefined; | ||
functionBind?: boolean | undefined; | ||
jsx?: boolean; | ||
numericSeparator?: boolean; | ||
classPrivateProperty?: boolean; | ||
privateMethod?: boolean; | ||
classProperty?: boolean; | ||
functionBind?: boolean; | ||
decorators: boolean; | ||
decoratorsBeforeExport: boolean; | ||
exportDefaultFrom?: boolean | undefined; | ||
exportNamespaceFrom?: boolean | undefined; | ||
dynamicImport?: boolean | undefined; | ||
nullishCoalescing?: boolean | undefined; | ||
optionalChaining?: boolean | undefined; | ||
importMeta?: boolean | undefined; | ||
topLevelAwait?: boolean | undefined; | ||
importAssertions?: boolean | undefined; | ||
importAttributes?: boolean | undefined; | ||
allowSuperOutsideMethod?: boolean | undefined; | ||
allowReturnOutsideFunction?: boolean | undefined; | ||
autoAccessors?: boolean | undefined; | ||
explicitResourceManagement?: boolean | undefined; | ||
exportDefaultFrom?: boolean; | ||
exportNamespaceFrom?: boolean; | ||
dynamicImport?: boolean; | ||
nullishCoalescing?: boolean; | ||
optionalChaining?: boolean; | ||
importMeta?: boolean; | ||
topLevelAwait?: boolean; | ||
importAssertions?: boolean; | ||
importAttributes?: boolean; | ||
allowSuperOutsideMethod?: boolean; | ||
allowReturnOutsideFunction?: boolean; | ||
autoAccessors?: boolean; | ||
explicitResourceManagement?: boolean; | ||
}; | ||
loose?: boolean | undefined; | ||
transform?: import("@swc/types").TransformConfig | undefined; | ||
externalHelpers?: boolean | undefined; | ||
target?: import("@swc/types").JscTarget | undefined; | ||
loose?: boolean; | ||
transform?: import("@swc/types").TransformConfig; | ||
externalHelpers?: boolean; | ||
target?: import("@swc/types").JscTarget; | ||
experimental?: { | ||
optimizeHygiene?: boolean | undefined; | ||
keepImportAttributes?: boolean | undefined; | ||
emitAssertForImportAttributes?: boolean | undefined; | ||
cacheRoot?: string | undefined; | ||
plugins?: [string, Record<string, any>][] | undefined; | ||
disableBuiltinTransformsForInternalTesting?: boolean | undefined; | ||
} | undefined; | ||
baseUrl?: string | undefined; | ||
optimizeHygiene?: boolean; | ||
keepImportAttributes?: boolean; | ||
emitAssertForImportAttributes?: boolean; | ||
cacheRoot?: string; | ||
plugins?: Array<[string, Record<string, any>]>; | ||
disableBuiltinTransformsForInternalTesting?: boolean; | ||
emitIsolatedDts?: boolean; | ||
}; | ||
baseUrl?: string; | ||
paths?: { | ||
[from: string]: string[]; | ||
} | undefined; | ||
minify?: import("@swc/types").JsMinifyOptions | undefined; | ||
preserveAllComments?: boolean | undefined; | ||
}; | ||
minify?: import("@swc/types").JsMinifyOptions; | ||
preserveAllComments?: boolean; | ||
} | undefined; | ||
script?: boolean | undefined; | ||
cwd?: string | undefined; | ||
caller?: import("@swc/types").CallerOptions | undefined; | ||
filename?: string | undefined; | ||
root?: string | undefined; | ||
rootMode?: "root" | "upward" | "upward-optional" | undefined; | ||
envName?: string | undefined; | ||
script?: boolean; | ||
cwd?: string; | ||
caller?: import("@swc/types").CallerOptions; | ||
filename?: string; | ||
root?: string; | ||
rootMode?: "root" | "upward" | "upward-optional"; | ||
envName?: string; | ||
configFile: string | boolean; | ||
swcrc: boolean; | ||
swcrcRoots?: boolean | import("@swc/types").MatchPattern | import("@swc/types").MatchPattern[] | undefined; | ||
inputSourceMap: string | boolean; | ||
sourceFileName?: string | undefined; | ||
sourceRoot?: string | undefined; | ||
plugin?: import("@swc/types").Plugin | undefined; | ||
isModule?: boolean | "unknown" | undefined; | ||
outputPath?: string | undefined; | ||
test?: string | string[] | undefined; | ||
exclude?: string | string[] | undefined; | ||
env?: import("@swc/types").EnvConfig | undefined; | ||
module?: import("@swc/types").ModuleConfig | undefined; | ||
minify?: boolean | undefined; | ||
swcrcRoots?: boolean | import("@swc/types").MatchPattern | import("@swc/types").MatchPattern[]; | ||
inputSourceMap: boolean | string; | ||
sourceFileName?: string; | ||
sourceRoot?: string; | ||
plugin?: import("@swc/types").Plugin; | ||
isModule?: boolean | "unknown"; | ||
outputPath?: string; | ||
test?: string | string[]; | ||
exclude?: string | string[]; | ||
env?: import("@swc/types").EnvConfig; | ||
module?: import("@swc/types").ModuleConfig; | ||
minify?: boolean; | ||
sourceMaps: boolean | "inline"; | ||
inlineSourcesContent?: boolean | undefined; | ||
inlineSourcesContent?: boolean; | ||
}; | ||
//# sourceMappingURL=get-transform-options.d.ts.map |
@@ -10,4 +10,5 @@ import { type FilterPattern as RollupFilterPattern } from "@rollup/pluginutils"; | ||
esbuild: false; | ||
target: string; | ||
}; | ||
configResolved(this: void, resolvedConfig: Readonly<Omit<import("vite").UserConfig, "worker" | "css" | "plugins" | "assetsInclude" | "optimizeDeps" | "build"> & { | ||
configResolved(this: void, resolvedConfig: Readonly<Omit<import("vite").UserConfig, "plugins" | "css" | "assetsInclude" | "build" | "optimizeDeps" | "worker"> & { | ||
configFile: string | undefined; | ||
@@ -29,5 +30,5 @@ configFileDependencies: string[]; | ||
}; | ||
plugins: readonly Plugin<any>[]; | ||
plugins: readonly Plugin[]; | ||
css: import("vite").ResolvedCSSOptions; | ||
esbuild: false | import("vite").ESBuildOptions; | ||
esbuild: import("vite").ESBuildOptions | false; | ||
server: import("vite").ResolvedServerOptions; | ||
@@ -39,3 +40,3 @@ build: import("vite").ResolvedBuildOptions; | ||
logger: import("vite").Logger; | ||
createResolver: (options?: Partial<import("vite").InternalResolveOptions> | undefined) => import("vite").ResolveFn; | ||
createResolver: (options?: Partial<import("vite").InternalResolveOptions>) => import("vite").ResolveFn; | ||
optimizeDeps: import("vite").DepOptimizationOptions; | ||
@@ -42,0 +43,0 @@ worker: import("vite").ResolvedWorkerOptions; |
{ | ||
"name": "vite-plugin-swc-transform", | ||
"version": "0.5.0-beta.1", | ||
"version": "1.0.0-alpha.1", | ||
"description": "Vite plugin for transforming source files with SWC.", | ||
@@ -63,3 +63,3 @@ "homepage": "https://github.com/ziir/vite-plugin-swc-transform/#readme", | ||
"@rollup/pluginutils": "^5.1.0", | ||
"@swc/core": "^1.6.1" | ||
"@swc/core": "^1.6.5" | ||
}, | ||
@@ -70,10 +70,10 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@biomejs/biome": "^1.8.1", | ||
"@biomejs/biome": "^1.8.2", | ||
"@types/node": "~20.11.30", | ||
"publint": "^0.2.8", | ||
"typescript": "^5.4.5", | ||
"typescript": "^5.5.2", | ||
"vite": "^5.3.1", | ||
"vitest": "^1.6.0", | ||
"viteup": "^0.0.4-beta.1" | ||
"viteup": "^0.0.4-beta.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
235
25777
Updated@swc/core@^1.6.5