Skip to content

Commit

Permalink
Mark AST dirty (parcel-bundler#5058)
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic authored Aug 25, 2020
1 parent 414075d commit 16f6aa0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/transformers/js/src/visitors/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export default {
if (typeof prop !== 'function') {
let value = types.valueToNode(prop);
morph(node, value);

// Mark AST dirty
asset.setAST(ast);

// TODO bust the cache on changes
// asset.meta.env[key.value] = process.env[key.value];
}
Expand All @@ -59,6 +62,9 @@ export default {
} else {
morph(node, types.booleanLiteral(true));
}

// Mark AST dirty
asset.setAST(ast);
}
},
};

0 comments on commit 16f6aa0

Please sign in to comment.