Skip to content

importBuild path #614

Discussion options

You must be logged in to vote

Because we sometimes need to target dist/esm/ instead of dist/cjs/, for example: https://github.com/brillout/vite-plugin-ssr/blob/09b2b967e3d1f969c2fadc52f37f6b6626f11ed0/vite-plugin-ssr/node/plugin/plugins/buildConfig.ts#L55-L56

Out of habit I always resolve starting from dist/. But, yea, I think for loadBuild.js we could indeed directly require.resolve('./loadBuild.js') instead. PR welcome, if you want.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hemengke1997
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants