This repository has been archived by the owner on May 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: compile away
node:
-namespaced imports (#806)
* chore: reproduce problem * fix: rewrite node:-imports on esbuild * chore: only require esbuild-compiled bundles * chore: require file for Node >= 14.18 * chore: gte wants a version, not an expression * chore: i should really run tests locally * chore: add test for cjs files, describe better * Update main.js Co-authored-by: Netlify Team Account 1 <netlify-team-account-1@users.noreply.github.com>
- Loading branch information
1 parent
2aa62bf
commit ed26237
Showing
4 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const console = require('node:console') | ||
|
||
exports.handler = () => { | ||
console.log('hello world') | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ed26237
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⏱ Benchmark results
largeDepsEsbuild: 8.5s
largeDepsNft: 56.3s
largeDepsZisi: 1m 8.7s