Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

fix: dynamic import module to avoid breaking in browser #129

Merged
merged 2 commits into from
Mar 31, 2022

Conversation

Kingwl
Copy link
Contributor

@Kingwl Kingwl commented Mar 28, 2022

No description provided.

@@ -49,11 +49,6 @@
"require": "./dist/webpack.js",
"import": "./dist/webpack.mjs",
"types": "./webpack.d.ts"
},
"./lib": {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm bad

Copy link
Collaborator

Choose a reason for hiding this comment

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

You bad bad 😆

Copy link
Collaborator

@xiaoxiangmoe xiaoxiangmoe left a comment

Choose a reason for hiding this comment

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

Please delete getRequire function

? require
: createRequire(import.meta.url)
)
async function getRequire() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

delete this function

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@antfu antfu requested a review from xiaoxiangmoe March 30, 2022 07:21
@Kingwl
Copy link
Contributor Author

Kingwl commented Mar 31, 2022

@xiaoxiangmoe PTAL

@xiaoxiangmoe xiaoxiangmoe merged commit 33eb148 into unplugin:main Mar 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants