From e09b05954a46986f0ffe911f32631c9501a9b77a Mon Sep 17 00:00:00 2001 From: xdan Date: Sat, 30 Nov 2024 18:39:48 +0300 Subject: [PATCH] Rename webpack.config.ts to js --- src/core/view/view.ts | 6 +++--- tools/webpack.config.ts | 2 +- webpack.config.js => webpack.config.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename webpack.config.js => webpack.config.ts (81%) diff --git a/src/core/view/view.ts b/src/core/view/view.ts index 185e126f6..d174966f4 100644 --- a/src/core/view/view.ts +++ b/src/core/view/view.ts @@ -84,11 +84,11 @@ export abstract class View extends Component implements IViewBased, Mods, Elms { return BASE_PATH; } - // from webpack.config.js + // from webpack.config.ts static readonly ES: 'es5' | 'es2015' | 'es2018' | 'es2021' = ES; static readonly version: string = APP_VERSION; - static readonly esNext: boolean = IS_ES_NEXT; // from webpack.config.js - static readonly esModern: boolean = IS_ES_MODERN; // from webpack.config.js + static readonly esNext: boolean = IS_ES_NEXT; // from webpack.config.ts + static readonly esModern: boolean = IS_ES_MODERN; // from webpack.config.ts /** * Return a default timeout period in milliseconds for some debounce or throttle functions. diff --git a/tools/webpack.config.ts b/tools/webpack.config.ts index a8aeda0ff..6e4406c7b 100644 --- a/tools/webpack.config.ts +++ b/tools/webpack.config.ts @@ -62,7 +62,7 @@ export default ( devtool: debug ? 'inline-source-map' : false, entry: { - jodit: ['./src/index'], + jodit: ['./src/index.ts'], ...(!fat ? pluginsEntries : {}) }, diff --git a/webpack.config.js b/webpack.config.ts similarity index 81% rename from webpack.config.js rename to webpack.config.ts index 7da3d4f82..e147fb81c 100644 --- a/webpack.config.js +++ b/webpack.config.ts @@ -4,4 +4,4 @@ * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net */ -module.exports = require('./tools/webpack.config'); +export { default } from './tools/webpack.config';