Skip to content

Commit

Permalink
Rename webpack.config.ts to js
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Nov 30, 2024
1 parent d47590f commit e09b059
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/core/view/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tools/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default (
devtool: debug ? 'inline-source-map' : false,

entry: {
jodit: ['./src/index'],
jodit: ['./src/index.ts'],
...(!fat ? pluginsEntries : {})
},

Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js → webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit e09b059

Please sign in to comment.