quidproquo-deploy-webpack 0.0.69 → 0.0.71

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.
@@ -2,9 +2,11 @@
2
2
  const path = require('path');
3
3
  module.exports = function (source) {
4
4
  const config = JSON.parse(process.env.QPQLoaderConfig);
5
+ const root = config.projectRoot;
5
6
  const imports = config.customActionProcessorSources
6
7
  .map((src, i) => {
7
- return `const customActionProcessorImport${i} = require('./${src}');`;
8
+ const srcPath = path.join(root, src).replace(/\\/g, '/');
9
+ return `const customActionProcessorImport${i} = require('${srcPath}');`;
8
10
  })
9
11
  .join('\n');
10
12
  const exports = config.customActionProcessorSources
@@ -61,7 +61,7 @@ const getWebpackConfig = (qpqConfig, buildPath, awsLambdasToBuild) => {
61
61
  // without additional settings, this will reference .babelrc
62
62
  presets: ['@babel/preset-typescript'],
63
63
  },
64
- exclude: /node_modules/,
64
+ // exclude: /node_modules/,
65
65
  },
66
66
  {
67
67
  test: /\.(yaml|json)$/,
@@ -70,7 +70,7 @@ const getWebpackConfig = (qpqConfig, buildPath, awsLambdasToBuild) => {
70
70
  },
71
71
  ],
72
72
  },
73
- plugins: [],
73
+ // plugins: [new BundleAnalyzerPlugin()],
74
74
  };
75
75
  };
76
76
  exports.getWebpackConfig = getWebpackConfig;
@@ -80,6 +80,7 @@ const getWebpackEntryNames = () => [
80
80
  'lambdaEventBridgeEvent',
81
81
  'lambdaEventOriginRequest',
82
82
  'lambdaEventViewerRequest',
83
+ 'lambdaSQSEvent',
83
84
  ];
84
85
  exports.getWebpackEntryNames = getWebpackEntryNames;
85
86
  const getSeoWebpackConfig = (qpqConfig, outputPath) => (0, exports.getWebpackConfig)(qpqConfig, outputPath || 'build', [
@@ -91,6 +92,7 @@ exports.getSeoWebpackConfig = getSeoWebpackConfig;
91
92
  const getApiWebpackConfig = (qpqConfig, outputPath) => (0, exports.getWebpackConfig)(qpqConfig, outputPath || 'build', [
92
93
  'lambdaEventBridgeEvent',
93
94
  'lambdaAPIGatewayEvent',
95
+ 'lambdaSQSEvent',
94
96
  ]);
95
97
  exports.getApiWebpackConfig = getApiWebpackConfig;
96
98
  const getAllWebpackConfig = (qpqConfig, outputPath) => (0, exports.getWebpackConfig)(qpqConfig, outputPath || 'build', (0, exports.getWebpackEntryNames)());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quidproquo-deploy-webpack",
3
- "version": "0.0.69",
3
+ "version": "0.0.71",
4
4
  "description": "",
5
5
  "main": "./lib/webpack.config.js",
6
6
  "types": "./lib/webpack.config.d.js",