Closed lake2 closed 1 week ago
I want to integrate @swc/cli in my project as follows:
const swc: any = require('@swc/cli/lib/swc/dir').default; const swcOptions: Config = { jsc: { target: 'esnext', externalHelpers: true, }, module: { type: 'commonjs', }, }; swc({ cliOptions: { outDir: './dist2', watch: true, filenames: ['./src'], extensions: ['.ts'], onSuccess: () => { // restart an express project // run typescript type check }, onFail: () => { // log reason }, }, swcOptions, });
But now onSuccess and onFail callbacks are missing. Is this reasonable? I will make a pr if this is possible.
Yeah, I think it's acceptable
I want to integrate @swc/cli in my project as follows:
But now onSuccess and onFail callbacks are missing. Is this reasonable? I will make a pr if this is possible.