mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix typo getTsloader > getTsLoader
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
parent
282b600229
commit
db68a79142
@ -27,7 +27,7 @@
|
|||||||
* @param testRegExp - the regex for webpack to conditional find the files
|
* @param testRegExp - the regex for webpack to conditional find the files
|
||||||
* @returns ts/tsx webpack loader configuration object
|
* @returns ts/tsx webpack loader configuration object
|
||||||
*/
|
*/
|
||||||
const getTsloader = (
|
const getTsLoader = (
|
||||||
testRegExp: RegExp, transpileOnly = true
|
testRegExp: RegExp, transpileOnly = true
|
||||||
) => {
|
) => {
|
||||||
const useEsbuildLoader = process.env.LENS_DEV_USE_ESBUILD_LOADER === "true";
|
const useEsbuildLoader = process.env.LENS_DEV_USE_ESBUILD_LOADER === "true";
|
||||||
@ -57,4 +57,4 @@ const getTsloader = (
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export default getTsloader;
|
export default getTsLoader;
|
||||||
|
|||||||
@ -26,7 +26,7 @@ import { isProduction, mainDir, buildDir, isDevelopment } from "./src/common/var
|
|||||||
import nodeExternals from "webpack-node-externals";
|
import nodeExternals from "webpack-node-externals";
|
||||||
import ProgressBarPlugin from "progress-bar-webpack-plugin";
|
import ProgressBarPlugin from "progress-bar-webpack-plugin";
|
||||||
import * as vars from "./src/common/vars";
|
import * as vars from "./src/common/vars";
|
||||||
import getTsloader from "./src/common/getTsloader";
|
import getTsLoader from "./src/common/getTsLoader";
|
||||||
|
|
||||||
export default function (): webpack.Configuration {
|
export default function (): webpack.Configuration {
|
||||||
console.info("WEBPACK:main", vars);
|
console.info("WEBPACK:main", vars);
|
||||||
@ -56,7 +56,7 @@ export default function (): webpack.Configuration {
|
|||||||
test: /\.node$/,
|
test: /\.node$/,
|
||||||
use: "node-loader"
|
use: "node-loader"
|
||||||
},
|
},
|
||||||
getTsloader(/\.ts$/)
|
getTsLoader(/\.ts$/)
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
|||||||
@ -28,7 +28,7 @@ import ForkTsCheckerPlugin from "fork-ts-checker-webpack-plugin";
|
|||||||
import ProgressBarPlugin from "progress-bar-webpack-plugin";
|
import ProgressBarPlugin from "progress-bar-webpack-plugin";
|
||||||
import ReactRefreshWebpackPlugin from "@pmmmwh/react-refresh-webpack-plugin";
|
import ReactRefreshWebpackPlugin from "@pmmmwh/react-refresh-webpack-plugin";
|
||||||
import * as vars from "./src/common/vars";
|
import * as vars from "./src/common/vars";
|
||||||
import getTsloader from "./src/common/getTsloader";
|
import getTsLoader from "./src/common/getTsLoader";
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
webpackLensRenderer
|
webpackLensRenderer
|
||||||
@ -89,7 +89,7 @@ export function webpackLensRenderer({ showVars = true } = {}): webpack.Configura
|
|||||||
test: /\.node$/,
|
test: /\.node$/,
|
||||||
use: "node-loader"
|
use: "node-loader"
|
||||||
},
|
},
|
||||||
getTsloader(/\.tsx?$/),
|
getTsLoader(/\.tsx?$/),
|
||||||
{
|
{
|
||||||
test: /\.(jpg|png|svg|map|ico)$/,
|
test: /\.(jpg|png|svg|map|ico)$/,
|
||||||
use: {
|
use: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user