1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

tweak ts-loader options

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2020-12-28 22:43:35 +02:00
parent 9026cee40d
commit a0134dafb4
2 changed files with 11 additions and 2 deletions

View File

@ -122,7 +122,7 @@ export class InfoPanel extends Component<Props> {
{showSubmitClose && (
<Button
primary active
label="{submitLabel} & Close"
label={`${submitLabel} & Close`}
onClick={submitAndClose}
disabled={isDisabled}
/>

View File

@ -83,7 +83,16 @@ export function webpackLensRenderer({ showVars = true } = {}): webpack.Configura
{
test: /\.tsx?$/,
exclude: /node_modules/,
use: "ts-loader"
use: {
loader: "ts-loader",
options: {
transpileOnly: true,
compilerOptions: {
target: "es2016",
module: "esnext",
},
}
}
},
{
test: /\.(jpg|png|svg|map|ico)$/,