quidproquo-deploy-webpack 0.0.42 → 0.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/webpack.config.d.ts +1 -1
- package/lib/webpack.config.js +2 -17
- package/package.json +1 -1
package/lib/webpack.config.d.ts
CHANGED
package/lib/webpack.config.js
CHANGED
|
@@ -25,13 +25,6 @@ const getWebpackConfig = (qpqConfig, buildPath, outputPrefix) => {
|
|
|
25
25
|
rootDir: path_1.default.resolve(buildPath, '..'),
|
|
26
26
|
});
|
|
27
27
|
return {
|
|
28
|
-
// entry: allSrcEntries.reduce(
|
|
29
|
-
// (entry, path) => ({
|
|
30
|
-
// ...entry,
|
|
31
|
-
// [`./${outputPrefix}/${path}`]: `./${path}`,
|
|
32
|
-
// }),
|
|
33
|
-
// {},
|
|
34
|
-
// ),
|
|
35
28
|
entry: {
|
|
36
29
|
lambdaAPIGatewayEvent: 'quidproquo-deploy-awscdk/src/lambdas/lambdaAPIGatewayEvent.ts',
|
|
37
30
|
lambdaEventBridgeEvent: 'quidproquo-deploy-awscdk/src/lambdas/lambdaEventBridgeEvent.ts',
|
|
@@ -39,15 +32,7 @@ const getWebpackConfig = (qpqConfig, buildPath, outputPrefix) => {
|
|
|
39
32
|
resolveLoader: {
|
|
40
33
|
modules: [path_1.default.resolve(__dirname, 'loaders'), 'node_modules'],
|
|
41
34
|
},
|
|
42
|
-
|
|
43
|
-
mode: 'production',
|
|
44
|
-
// We should: sort out how to split the bundles and get it to work on aws
|
|
45
|
-
// optimization: {
|
|
46
|
-
// splitChunks: {
|
|
47
|
-
// // include all types of chunks
|
|
48
|
-
// chunks: "all",
|
|
49
|
-
// },
|
|
50
|
-
// },
|
|
35
|
+
mode: getWebpackBuildMode(qpqConfig),
|
|
51
36
|
target: 'node',
|
|
52
37
|
output: {
|
|
53
38
|
// Output path
|
|
@@ -72,7 +57,7 @@ const getWebpackConfig = (qpqConfig, buildPath, outputPrefix) => {
|
|
|
72
57
|
// without additional settings, this will reference .babelrc
|
|
73
58
|
presets: ['@babel/preset-typescript'],
|
|
74
59
|
},
|
|
75
|
-
exclude: /node_modules/,
|
|
60
|
+
// exclude: /node_modules/,
|
|
76
61
|
},
|
|
77
62
|
{
|
|
78
63
|
test: /\.(yaml|json)$/,
|