Hey guys, I'm on `0.46`, I was wondering if the op...
# sst
j
Hey guys, I'm on
0.46
, I was wondering if the option
minify
on sst Function was removed or at a different place. I couldn't it find on
Function.d.ts
t
It's under bundle.minify
j
yep should be there but upon inspecting Function.d.ts it did not have minify prop
Copy code
export interface FunctionBundleNodejsProps {
    loader?: {
        [ext: string]: esbuild.Loader;
    };
    externalModules?: string[];
    nodeModules?: string[];
    commandHooks?: lambdaNode.ICommandHooks;
    esbuildConfig?: string | FunctionBundleEsbuildConfig;
}
i just updated to 0.48
t
weird I see it
Copy code
export interface FunctionBundleNodejsProps {
    loader?: {
        [ext: string]: esbuild.Loader;
    };
    externalModules?: string[];
    nodeModules?: string[];
    commandHooks?: lambdaNode.ICommandHooks;
    esbuildConfig?: string | FunctionBundleEsbuildConfig;
    minify?: boolean;
}
did you try nuking node_modules? Also is it possible you're using yarn workspaces and a subpackage is installing an older version?
j
used npm for this, yep did remove node_modules and reinstalled, same thing
t
can you check
node_modules/@serverless-stack/resources/package.json
and see if it's the right version
j
yes, it's the right version
Copy code
"version": "0.46.0",
t
we actually only added minify in 0.46.1
note this is for disabling it, it's true by default
j
ah thanks mate, i just bumped my version, was explaining to one of my juniors that's why i came across this.
didn't see release notes also, my apologies. thanks for taking the time