Skip to content

Commit

Permalink
Merge branch 'main' into release-v2.40.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Asuka109 committed Nov 9, 2023
2 parents 471ad2a + 7640d4d commit 78fbed7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/strange-glasses-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@modern-js/runtime': patch
---

fix: import('node:xx') would compile failed when target = webworker
fix: import('node:xx') 将在 target = webworker 时构建失败
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ const checkIsInline = (

const readAsset = async (chunk: ChunkAsset) => {
// working node env
const fs = await import('node:fs/promises');
const path = await import('node:path');
const fs = await import('fs/promises');
const path = await import('path');

// only working in 'production' env
// we need ensure the assetsDir is same as ssr bundles.
Expand Down

0 comments on commit 78fbed7

Please sign in to comment.