@@ -16,7 +16,7 @@ import {
1616} from './common.js'
1717import pluginCedarGqlormInject from './plugins/babel-plugin-cedar-gqlorm-inject.js'
1818import pluginCedarGraphqlOptionsExtract from './plugins/babel-plugin-cedar-graphql-options-extract.js'
19- import pluginRedwoodContextWrapping from './plugins/babel-plugin-redwood-context -wrapping.js'
19+ import handlerAlsWrappingPlugin from './plugins/babel-plugin-handler-als -wrapping.js'
2020import pluginRedwoodDirectoryNamedImport from './plugins/babel-plugin-redwood-directory-named-import.js'
2121import pluginRedwoodImportDir from './plugins/babel-plugin-redwood-import-dir.js'
2222import pluginRedwoodJobPathInjector from './plugins/babel-plugin-redwood-job-path-injector.js'
@@ -174,20 +174,20 @@ export const getApiSideBabelOverrides = ({
174174} = { } ) => {
175175 const overrides = [
176176 // Extract graphql options from the graphql function
177- // NOTE: this must come before the context wrapping
177+ // NOTE: this must come before the handler-als- wrapping
178178 {
179179 // match */api/src/functions/graphql.js|ts
180180 test : / .+ a p i (?: [ \\ | / ] ) s r c (?: [ \\ | / ] ) f u n c t i o n s (?: [ \\ | / ] ) g r a p h q l \. (?: j s | t s ) $ / ,
181181 plugins : [ pluginCedarGraphqlOptionsExtract , pluginCedarGqlormInject ] ,
182182 } ,
183- // Apply context wrapping to all functions (Jest only; Vite uses
184- // cedarContextWrappingPlugin instead)
183+ // Apply handler ALS wrapping to all functions (Jest only; Vite uses
184+ // handlerAlsWrappingPlugin instead)
185185 forJest && {
186186 // match */api/src/functions/*.js|ts
187187 test : / .+ a p i (?: [ \\ | / ] ) s r c (?: [ \\ | / ] ) f u n c t i o n s (?: [ \\ | / ] ) .+ .(?: j s | t s ) $ / ,
188188 plugins : [
189189 [
190- pluginRedwoodContextWrapping ,
190+ handlerAlsWrappingPlugin ,
191191 {
192192 projectIsEsm,
193193 } ,
0 commit comments