Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-webkit support #2

Open
utenma opened this issue Aug 30, 2023 · 3 comments
Open

node-webkit support #2

utenma opened this issue Aug 30, 2023 · 3 comments

Comments

@utenma
Copy link

utenma commented Aug 30, 2023

NW.js seems the most established alternative to electron, webpack already supports it as target

@yejimeiming
Copy link
Member

You want me to do something, do you want vite-plugin-nw.js?

@utenma
Copy link
Author

utenma commented Sep 4, 2023

just being able to import node builtin modules with es syntax, webpack with target nw seems converting node es imports from node modules to require calls

import { join } from 'path 
// ↓↓↓ transpiled
const { join } = require('path')

because nw target both browser and node libraries

@yejimeiming
Copy link
Member

Can you provide a minimal repo for this? I haven't used nw.js yet.

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

No branches or pull requests

2 participants