Describe the bug
I want to use SolidJS in an Electron. Using require('solid-js/web').isServer returns true, which means I can't use render and other web-related code.
I can work-around by requiring solid-js/web/dist/web.cjs but seems fragile...
Your Example Website or App
https://github.com/mauricioszabo/solid-electron-error
Steps to Reproduce the Bug or Issue
Inside an electron app with nodeIntegration: true try to require solid-js/web. The contents of isServer is true
Expected behavior
I expect require('solid-js/web') to always require "web" stuff, or at least have something like require('solid-js/browser') that always points to browser, and require('solid-js/server') that always points to server
Screenshots or Videos
No response
Platform
- OS: Ubuntu 12.10
- Browser: Electron 12.0
Additional context
No response
Describe the bug
I want to use SolidJS in an Electron. Using
require('solid-js/web').isServerreturnstrue, which means I can't userenderand other web-related code.I can work-around by requiring
solid-js/web/dist/web.cjsbut seems fragile...Your Example Website or App
https://github.com/mauricioszabo/solid-electron-error
Steps to Reproduce the Bug or Issue
Inside an electron app with
nodeIntegration: truetry to requiresolid-js/web. The contents ofisServeristrueExpected behavior
I expect
require('solid-js/web')to always require "web" stuff, or at least have something likerequire('solid-js/browser')that always points to browser, andrequire('solid-js/server')that always points to serverScreenshots or Videos
No response
Platform
Additional context
No response