From b6b3a63196cdde09bd33dde725cdd26154359970 Mon Sep 17 00:00:00 2001 From: mbehzad Date: Tue, 16 Apr 2024 16:45:30 +0200 Subject: [PATCH] refactor(pv-scripts): remove obsoalte webpack rules --- .../webpack/base/tasks/compileKluntje.js | 46 ------------------- .../webpack/base/tasks/compileLitHTML.js | 46 ------------------- 2 files changed, 92 deletions(-) delete mode 100644 packages/pv-scripts/webpack/base/tasks/compileKluntje.js delete mode 100644 packages/pv-scripts/webpack/base/tasks/compileLitHTML.js diff --git a/packages/pv-scripts/webpack/base/tasks/compileKluntje.js b/packages/pv-scripts/webpack/base/tasks/compileKluntje.js deleted file mode 100644 index 4c525cb4..00000000 --- a/packages/pv-scripts/webpack/base/tasks/compileKluntje.js +++ /dev/null @@ -1,46 +0,0 @@ -const path = require("path"); - -module.exports = { - module: { - rules: [ - { - test: /@kluntje[\\/]/, - use: { - loader: require.resolve("babel-loader"), - options: { - presets: [ - [ - require.resolve("@babel/preset-env"), - { - targets: { - ie: 11, - }, - }, - ], - ], - plugins: [ - [ - require.resolve("@babel/plugin-proposal-decorators"), - { - legacy: true, - }, - ], - [ - require.resolve("@babel/plugin-transform-runtime"), - { - corejs: false, - regenerator: true, - useESModules: false, - helpers: false, - absoluteRuntime: path.dirname( - require.resolve("@babel/runtime/package.json") - ), - }, - ], - ], - }, - }, - }, - ], - }, -}; diff --git a/packages/pv-scripts/webpack/base/tasks/compileLitHTML.js b/packages/pv-scripts/webpack/base/tasks/compileLitHTML.js deleted file mode 100644 index 95e94186..00000000 --- a/packages/pv-scripts/webpack/base/tasks/compileLitHTML.js +++ /dev/null @@ -1,46 +0,0 @@ -const path = require("path"); - -module.exports = { - module: { - rules: [ - { - test: /lit-html/, - use: { - loader: require.resolve("babel-loader"), - options: { - presets: [ - [ - require.resolve("@babel/preset-env"), - { - targets: { - ie: 11, - }, - }, - ], - ], - plugins: [ - [ - require.resolve("@babel/plugin-proposal-decorators"), - { - legacy: true, - }, - ], - [ - require.resolve("@babel/plugin-transform-runtime"), - { - corejs: false, - regenerator: true, - useESModules: false, - helpers: false, - absoluteRuntime: path.dirname( - require.resolve("@babel/runtime/package.json") - ), - }, - ], - ], - }, - }, - }, - ], - }, -};