mirror of
https://iceshrimp.dev/blueb/Chuckya-fe-standalone.git
synced 2026-01-11 13:33:21 -08:00
Merge commit '06f070d86d' into glitch-soc/merge-upstream
This commit is contained in:
commit
d999fc52ba
18 changed files with 280 additions and 203 deletions
|
|
@ -2,19 +2,19 @@ const { join, resolve } = require('path');
|
|||
|
||||
const { env, settings } = require('../configuration');
|
||||
|
||||
// Those modules contain modern ES code that need to be transpiled for Webpack to process it
|
||||
const nodeModulesToProcess = [
|
||||
'@reduxjs', 'fuzzysort'
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
test: /\.(js|jsx|mjs|ts|tsx)$/,
|
||||
include: [
|
||||
settings.source_path,
|
||||
...settings.resolved_paths,
|
||||
'node_modules/@reduxjs'
|
||||
...nodeModulesToProcess.map(p => resolve(`node_modules/${p}`)),
|
||||
].map(p => resolve(p)),
|
||||
exclude: function(modulePath) {
|
||||
return (
|
||||
/node_modules/.test(modulePath) &&
|
||||
!/@reduxjs/.test(modulePath)
|
||||
);
|
||||
},
|
||||
exclude: new RegExp('node_modules\\/(?!(' + nodeModulesToProcess.join('|')+')\\/).*'),
|
||||
use: [
|
||||
{
|
||||
loader: 'babel-loader',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue