From e6e43cf47b3ca775f7e50b9b6026cdcdc84647d3 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Tue, 27 Aug 2024 16:40:38 -0400 Subject: [PATCH] Revert unintentional changes in ef5e90f3b998ae0d906295ae2c0ba56aa2947ae6 --- webpack.config.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 9a5ef6be..53c6ed96 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -34,23 +34,18 @@ function generateReaderConfig(build) { module: { rules: [ { - test: /\.(ts|js)x?$/, + test: /\.(js|jsx)$/, exclude: /node_modules/, use: { loader: 'babel-loader', options: { presets: [ - ['@babel/preset-env', { - useBuiltIns: false, - targets: build === 'zotero' || build === 'dev' - ? { firefox: 115, chrome: 128 } - : undefined - }], + ['@babel/preset-env', { useBuiltIns: false }], ], }, }, }, - build === 'dev' && { + { test: /\.tsx?$/, exclude: /node_modules/, use: 'ts-loader',