Skip to content

Conversation

@emiaimi-aws
Copy link
Contributor

Fixes #
According to the issue #87, moving re2-wasm from node_moudles options to support network-blocked internal build system.

RBose-amzn
RBose-amzn previously approved these changes Nov 24, 2025
Comment on lines 29 to 40
// a WASM module, so it's excluded from the bundle and copied from local node_modules.
// Change this method once we figure out a better way to interact
// with the network-blocked builder system.
externalModules: ['re2-wasm'],
commandHooks: {
beforeBundling: (): string[] => [],
beforeInstall: (): string[] => [],
afterBundling: (inputDir: string, outputDir: string): string[] => [
`mkdir -p ${outputDir}/node_modules`,
`cp -r ${inputDir}/node_modules/re2-wasm ${outputDir}/node_modules/`,
],
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we're copying the same thing to all of these. Can define this once in the lambdaDefaults module to avoid the risk of drift or copy errors?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added re2-wasm in lambdaDefaults.

@emiaimi-aws emiaimi-aws merged commit fe42cb4 into main Nov 26, 2025
6 checks passed
@emiaimi-aws emiaimi-aws deleted the fixRe2-wasm branch November 26, 2025 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants