Skip to content

added compile step and node module resolution to translucent-blueprint#39

Open
Piefayth wants to merge 3 commits intobutaneprotocol:mainfrom
Piefayth:node-blueprint
Open

added compile step and node module resolution to translucent-blueprint#39
Piefayth wants to merge 3 commits intobutaneprotocol:mainfrom
Piefayth:node-blueprint

Conversation

@Piefayth
Copy link
Contributor

@Piefayth Piefayth commented Feb 3, 2024

Closes #38

bun run build from the translucent-blueprint folder should produce a valid artifact for any platform that supports the node apis now.

I found one limitation WRT imports described here. Essentially, typescript won't transpile import foo from './foo to import foo from './foo.js no matter what you do. Likewise, the node team specifically refuses to allow ./foo style ESM imports. Luckily, Bun can interpret xxx.js as xxx.ts when handling imports, so the simplest solution here is just to use from xxx.js style imports in translucent-blueprint. It sure looks silly, though.

Also fixed up the test I added to be a lil more Bun-idiomatic, since I had to touch it anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix building for translucent-blueprint

2 participants