Skip to content

Commit

Permalink
fix: dynamic imports in content scripts are broken
Browse files Browse the repository at this point in the history
the way the existing logic is implemented doesn't work correctly and things work ok without it, so remove it
  • Loading branch information
samrum committed Jan 2, 2023
1 parent 7d06e74 commit 2c758b4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,6 @@ export default function webExtension(
emitQueue = [];
},

renderDynamicImport({ moduleId }) {
if (moduleId.includes("node_modules")) {
return null;
}

return {
left: "import((chrome != null ? chrome : browser).runtime.getURL(",
right: "))",
};
},

resolveId(id) {
return getVirtualModule(id) ? id : null;
},
Expand Down

0 comments on commit 2c758b4

Please sign in to comment.