fix(webpack): fixed resolving .js extension when building

- also removed eslint
This commit is contained in:
dunak-debug committed 2021-08-15 16:48:29 +02:00
1 parent 1f675b44c4
commit 7afd440931
6 files changed
+56 -24

No files matched your search

+1 -3
View File
@@ -1,5 +1,4 @@
const path = require('path');
const ESLintPlugin = require('eslint-webpack-plugin');
module.exports = {
mode: "production",
@@ -16,11 +15,10 @@ module.exports = {
],
},
resolve: {
extensions: ['.ts'],
extensions: ['.ts', '.js'],
},
output: {
filename: 'oxmysql.js',
path: path.resolve(__dirname, 'dist'),
},
plugins: [new ESLintPlugin()],
};