Skip to content

Commit

Permalink
style: add newline
Browse files Browse the repository at this point in the history
  • Loading branch information
exuanbo committed Aug 9, 2021
1 parent c75e7b6 commit 0de9539
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/require.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const requireFromString = (code: string, options: Options = {}): any => {
const mainModule = require.main!
const fileName = path.join(mainModule.path, `${nanoid()}.js`)
const contextModule = new Module(fileName, mainModule)

contextModule.filename = fileName
contextModule.path = mainModule.path
contextModule.paths = mainModule.paths
Expand Down

0 comments on commit 0de9539

Please sign in to comment.