babel-plugin-essor 0.0.15-beta.5 → 0.0.15-beta.7

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.
package/dist/index.js CHANGED
@@ -582,9 +582,7 @@ var transformProgram = {
582
582
  exit: (path, state) => {
583
583
  const pluginState = path.state;
584
584
  const { imports, declarations, events } = pluginState;
585
- const insertIndex = path.node.body.findIndex(
586
- (node) => !t4.isImportDeclaration(node) && !t4.isExportDeclaration(node)
587
- );
585
+ const insertIndex = path.node.body.findIndex((node) => !t4.isImportDeclaration(node));
588
586
  if (declarations == null ? void 0 : declarations.length) {
589
587
  const templateDeclaration = t4.variableDeclaration("const", declarations);
590
588
  if (insertIndex !== -1) {