Skip to content

Commit

Permalink
chore: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
caoxiemeihao committed Apr 14, 2023
1 parent 4d50e2f commit 7d8471e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cjs-shim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default function cjsShim(): Plugin {

if (assetsDir) {
// ---------------------------------------- shim-require-id
// TODO: https://github.com/electron-vite/vite-plugin-electron-renderer/blob/v0.14.1/src/index.ts#L348-L349
const requireIdShim = `<script id="shim-require-id">
; (function () {
if (typeof require !== 'function') return;
Expand Down

0 comments on commit 7d8471e

Please sign in to comment.