danielroe / siroc

Zero-config build tooling for Node
MIT License
152 stars 4 forks source link

fix: stub is broken for cjs #219

Closed antfu closed 3 years ago

antfu commented 3 years ago

🐛 The bug What isn't working? Describe what the bug is.

siroc dev

Both index.js, index.mjs, index.d.ts are

export * from './../src/index'

without wrapping with jiti

danielroe commented 3 years ago

@antfu What would you expect the files to contain? And what isn't working?

antfu commented 3 years ago

Shouldn't .js contain a wrapper with jiti and module.exports?