File tree 1 file changed +9
-7
lines changed
heft-plugins/heft-serverless-stack-plugin/src
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -84,13 +84,15 @@ export class ServerlessStackPlugin implements IHeftPlugin<IServerlessStackPlugin
84
84
85
85
heftSession . hooks . build . tap ( PLUGIN_NAME , ( build : IBuildStageContext ) => {
86
86
build . hooks . bundle . tap ( PLUGIN_NAME , ( bundle : IBundleSubstage ) => {
87
- bundle . hooks . configureWebpack . tap (
88
- { name : PLUGIN_NAME , stage : Number . MAX_SAFE_INTEGER } ,
89
- ( webpackConfiguration : unknown ) => {
90
- // Discard Webpack's configuration to prevent Webpack from running
91
- return null ;
92
- }
93
- ) ;
87
+ if ( ! sstParameter . value ) {
88
+ bundle . hooks . configureWebpack . tap (
89
+ { name : PLUGIN_NAME , stage : Number . MAX_SAFE_INTEGER } ,
90
+ ( webpackConfiguration : unknown ) => {
91
+ // Discard Webpack's configuration to prevent Webpack from running
92
+ return null ;
93
+ }
94
+ ) ;
95
+ }
94
96
95
97
bundle . hooks . run . tapPromise ( PLUGIN_NAME , async ( ) => {
96
98
if ( ! sstParameter . value ) {
You can’t perform that action at this time.
0 commit comments