-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.mjs
More file actions
37 lines (36 loc) · 784 Bytes
/
Copy pathwebpack.config.mjs
File metadata and controls
37 lines (36 loc) · 784 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
import tsconfigRaw from './tsconfig.build.json' assert { type: 'json' };
export default {
entry: './test-serverless-adapter/index.ts',
target: 'node16',
experiments: {
outputModule: true,
},
output: {
filename: 'index.js',
libraryTarget: 'module',
chunkFormat: 'module',
environment: {
module: true,
}
},
resolve: {
extensions: ['.ts', '.js'],
modules: [
'node_modules',
'src',
],
},
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'esbuild-loader',
options: {
loader: 'tsx', // Remove this if you're not using JSX
target: 'es2020', // Syntax to compile to (see options below for possible values),,
tsconfigRaw,
},
},
],
},
};