forked from zhixiaoqiang/yapi2code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrspack.config.js
More file actions
40 lines (39 loc) · 728 Bytes
/
Copy pathrspack.config.js
File metadata and controls
40 lines (39 loc) · 728 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
const path = require('path')
/** @type {import('@rspack/cli').Configuration} */
module.exports = {
target: 'node',
mode: 'production',
entry: './src/index.ts',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'extension.js',
library: {
type: 'commonjs2'
}
},
externals: {
vscode: 'commonjs vscode'
},
resolve: {
extensions: ['.ts', '.js', '.tsx', '.jsx'],
modules: [path.resolve(__dirname, 'node_modules')],
alias: {
'@': path.resolve(__dirname, './src')
}
},
builtins: {
copy: {
patterns: [
{
from: path.resolve('src', 'assets'),
to: path.resolve('dist', 'assets')
}
]
}
},
watchOptions: {
ignored: /node_modules/,
poll: true
},
devtool: false
}