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,28 +31,25 @@ const noParse = (a) => a.endsWith('.spec.js');
|
||||||
// Rspack's native SWC transform, so client/sw/sw.js (the only file that
|
// Rspack's native SWC transform, so client/sw/sw.js (the only file that
|
||||||
// uses it) keeps going through babel-loader. Everything else uses
|
// uses it) keeps going through babel-loader. Everything else uses
|
||||||
// Rspack's built-in SWC loader, which is the main source of the speedup.
|
// Rspack's built-in SWC loader, which is the main source of the speedup.
|
||||||
const rules = [
|
const rules = [{
|
||||||
{
|
test: /sw\/sw\.js$/,
|
||||||
test: /sw\/sw\.js$/,
|
exclude: /node_modules/,
|
||||||
exclude: /node_modules/,
|
loader: 'babel-loader',
|
||||||
loader: 'babel-loader',
|
}, {
|
||||||
},
|
test: /\.[mc]?js$/,
|
||||||
{
|
exclude: [/node_modules/, /sw\/sw\.js$/],
|
||||||
test: /\.[mc]?js$/,
|
loader: 'builtin:swc-loader',
|
||||||
exclude: [/node_modules/, /sw\/sw\.js$/],
|
options: {
|
||||||
loader: 'builtin:swc-loader',
|
jsc: {
|
||||||
options: {
|
parser: {
|
||||||
jsc: {
|
syntax: 'ecmascript',
|
||||||
parser: {
|
|
||||||
syntax: 'ecmascript',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
env: {
|
|
||||||
targets: 'defaults',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
env: {
|
||||||
|
targets: 'defaults',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
}];
|
||||||
|
|
||||||
const plugins = [
|
const plugins = [
|
||||||
new NormalModuleReplacementPlugin(/^node:/, (resource) => {
|
new NormalModuleReplacementPlugin(/^node:/, (resource) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue