-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathrspack.config.js
More file actions
46 lines (45 loc) · 850 Bytes
/
rspack.config.js
File metadata and controls
46 lines (45 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import { defineConfig } from '@rspack/cli';
import rspack from '@rspack/core';
export default defineConfig([
{
mode: 'production',
entry: {
'custom-features-row': './src/custom-features-row.ts',
},
output: {
filename: '/custom-card-features.min.js',
},
resolve: {
extensions: ['.ts', '.tsx', '.js'],
},
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'ts-loader',
},
{
test: /\.(jsx?|tsx?)$/,
loader: 'minify-html-literals-loader',
},
{
test: /\.m?js/,
resolve: {
fullySpecified: false,
},
},
],
},
plugins: [
new rspack.ProvidePlugin({
process: 'process/browser',
}),
],
performance: {
hints: false,
maxEntrypointSize: 512000,
maxAssetSize: 512000,
},
devtool: false,
},
]);