Skip to content

Conversation

Alfred-Skyblue
Copy link
Member

@Alfred-Skyblue Alfred-Skyblue commented Jun 15, 2023

Use import xxx from 'node:xxx' to import node built-in modules.

@netlify
Copy link

netlify bot commented Jun 15, 2023

Deploy Preview for vue-sfc-playground failed.

Name Link
🔨 Latest commit b8a9582
🔍 Latest deploy log https://app.netlify.com/sites/vue-sfc-playground/deploys/64db6bf8d5796b0008842d70

Copy link
Member

@sxzz sxzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Alfred-Skyblue Alfred-Skyblue requested a review from sxzz August 15, 2023 12:55
@Alfred-Skyblue Alfred-Skyblue force-pushed the chore-node branch 2 times, most recently from 114a8e7 to b14ed6c Compare August 15, 2023 13:58
@Alfred-Skyblue
Copy link
Member Author

I have installed the eslint-plugin-import plugin within the project. However, since compiler-sfc.esm-browser.js will be running in a browser environment, using the node:xxx import syntax is not viable. Consequently, I have overridden the rules for the compiler-sfc directory.

@github-actions
Copy link

github-actions bot commented Aug 21, 2023

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 85.8 kB 32.6 kB 29.5 kB
vue.global.prod.js 132 kB 49.3 kB 44.3 kB

Usages

Name Size Gzip Brotli
createApp 47.9 kB 18.8 kB 17.2 kB
createSSRApp 50.6 kB 19.9 kB 18.2 kB
defineCustomElement 50.3 kB 19.6 kB 17.9 kB
overall 61.2 kB 23.7 kB 21.6 kB

@sxzz sxzz changed the title chore: update the syntax for importing built-in modules in Node style: prefer node: protocol Sep 7, 2023
@sxzz sxzz changed the base branch from main to chore/style September 7, 2023 13:48
@sxzz sxzz force-pushed the chore/style branch 3 times, most recently from b96fea8 to de5f795 Compare December 19, 2023 09:18
@sxzz sxzz merged commit 00c6f85 into vuejs:chore/style Dec 19, 2023
@Alfred-Skyblue Alfred-Skyblue deleted the chore-node branch December 19, 2023 13:28
sxzz added a commit that referenced this pull request Dec 19, 2023
Co-authored-by: 丶远方 <[email protected]>
Co-authored-by: 三咲智子 Kevin Deng <[email protected]>
sxzz added a commit that referenced this pull request Dec 19, 2023
Co-authored-by: 丶远方 <[email protected]>
Co-authored-by: 三咲智子 Kevin Deng <[email protected]>
sxzz added a commit that referenced this pull request Dec 19, 2023
Co-authored-by: 丶远方 <[email protected]>
Co-authored-by: 三咲智子 Kevin Deng <[email protected]>
sxzz added a commit that referenced this pull request Dec 20, 2023
Co-authored-by: 丶远方 <[email protected]>
Co-authored-by: 三咲智子 Kevin Deng <[email protected]>
sxzz added a commit that referenced this pull request Dec 26, 2023
Co-authored-by: 丶远方 <[email protected]>
Co-authored-by: 三咲智子 Kevin Deng <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review This PR requires more reviews
Projects
Development

Successfully merging this pull request may close these issues.

2 participants