mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-17 16:38:18 +00:00
chore: cloudcmd: actions: lint ☘️
This commit is contained in:
parent
0638ca32cb
commit
cd4a2cec76
1 changed files with 16 additions and 19 deletions
|
|
@ -31,13 +31,11 @@ const noParse = (a) => a.endsWith('.spec.js');
|
|||
// Rspack's native SWC transform, so client/sw/sw.js (the only file that
|
||||
// uses it) keeps going through babel-loader. Everything else uses
|
||||
// Rspack's built-in SWC loader, which is the main source of the speedup.
|
||||
const rules = [
|
||||
{
|
||||
const rules = [{
|
||||
test: /sw\/sw\.js$/,
|
||||
exclude: /node_modules/,
|
||||
loader: 'babel-loader',
|
||||
},
|
||||
{
|
||||
}, {
|
||||
test: /\.[mc]?js$/,
|
||||
exclude: [/node_modules/, /sw\/sw\.js$/],
|
||||
loader: 'builtin:swc-loader',
|
||||
|
|
@ -51,8 +49,7 @@ const rules = [
|
|||
targets: 'defaults',
|
||||
},
|
||||
},
|
||||
},
|
||||
];
|
||||
}];
|
||||
|
||||
const plugins = [
|
||||
new NormalModuleReplacementPlugin(/^node:/, (resource) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue