Add support for Solid JSX

This issue has been created since 2020-05-12.

The tests and global build for a package with .tsx outputting to .jsx currently don't work because lume/cli's Webpack setup isn't configured to consume .jsx yet.

trusktr wrote this answer on 2020-12-02

Karma-webpack is now configured to consume .jsx files, but the top-level files that run through karma (i.e. *.test.js files) can not have .jsx extensions, otherwise Karma will fail to pass those files to karma-webpack for handling.

Putting JSX inside .js files works (those files will have JSX compiled by karma-webpack), but the transpilation adds import statements that karma-webpack can't resolve (import from "@lume/element"). Plus, if we were to keep outputting JSX code, we'd want to keep those in semantiaclly-named .jsx files, and naming them with .js wouldn't be ideal.

  • make lume build output everything as .js with JSX compiled away (we need to do this in order to be ES Module compliant anyway, more details in lume/lume#219)
  • @lume/element does not depend on itself, so when we run tests in the lume/element repo, the JSX build output's @lume/element import specifiers need to be replaced with something else or else lume/element tests don't know how to import the library they're in. This is a bit meta. For the lume/element case, maybe the webpack config for karma-webpack can have a resolve.alias setting to make @lume/element alias to dist/index.js
More Details About Repo
Owner Name lume
Repo Name cli
Full Name lume/cli
Language JavaScript
Created Date 2018-02-09
Updated Date 2021-09-27
Star Count 5
Watcher Count 5
Fork Count 1
Issue Count 12

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
delay stops working sometimes 4 2022-05-17 2022-09-15
Astronomer - Airflow Engineer - Remote 1 2021-12-07 2022-09-03
Dell - VxRail Software Engineer - 上海 1 2021-12-08 2022-09-03
[Feature Request]更换图标 2 2022-08-12 2022-09-19
Cryptography.NonStandard: Pseudorandom number generators are risky 1 2021-07-30 2022-09-17
Configuration: CSP Protection Appears To Be Missing 1 2021-07-30 2022-09-17
[其他]:无法在 Release 页便捷地下载到所有版本的资源包 6 2022-06-19 2022-09-21
Nastool at istoreOs +x86环境 folder setting .. 0 2022-09-23 2022-09-29
Conflict with Mouse Tweaks due to GuiScreen wrapping? 4 2021-12-12 2022-09-17
Cant import glb files in Blender 12 2019-05-09 2022-09-22
Torrent info modal Progress just green bar without percent displayed 3 2022-06-05 2022-09-02
Create [return-unwrap] and [signal-unwrap] that automagically unwraps expressions recursively before invocation 0 2021-10-11 2022-09-02
Symfony\Component\Debug\Exception\FatalThrowableError in GET /organizations/1/edit 0 2022-06-17 2022-09-02
Freeze target asura strike behavior 5 2022-05-04 2022-09-16
End time in setup doesn't set properly 0 2022-02-07 2022-09-15
Feature request b3sum: window-size & offset options 2 2021-02-05 2022-08-14
markedDateCustomTextStyle not adopt style in weekend days 1 2021-04-27 2022-09-21
MAC能不能做一个把程序放在顶部菜单栏的功能 29 2018-12-25 2022-09-29
请问Proxy和GFWList+GreatFile,有何不同,需要一起使用么? 1 2021-05-07 2022-09-17
[MU4 Issue] Palette elements (dynamics, time signatures, articulations etc.) should toggle off after adding to score 0 2021-10-27 2021-11-25
Invoke-IcingaCheckTimeSync.psm1 doesn't detect time drift 5 2021-05-28 2022-09-20
Activate more versions of documentation 8 2022-01-11 2022-09-25
micropip.list() is not a thing that exists. 3 2022-01-10 2022-09-12
Link to core.match documentation similarly to link to core.async 1 2021-12-30 2022-09-10
关于延迟、性能损失和画面效果 9 2021-08-09 2022-01-19
RDS database is not created in eu-west-1 region 1 2021-03-12 2022-09-05
Messages that contain attachments 0 2021-10-22 2022-09-09
Add New Audience Items 9 2022-05-05 2022-09-12
Rename Repo -iOS 3 2021-02-22 2021-12-25
[BUG] GitHub Runners not running chaos jobs (08-Sep-2022) 2 2022-09-08 2022-09-24
[BUG] Get chaos specs to run on kind v0.15 3 2022-09-08 2022-09-24
[Dependencies.swift][SPM] Nested dependencies cannot link correctly 6 2022-02-14 2022-07-20
AT模式下undo_log相关信息可以改为使用redis存吗,公司禁止使用大字段longblob 1 2022-03-25 2022-08-01
BUG: GroupBy.size incorrect for axis=1 0 2022-01-30 2022-07-11
[Package]: Qbittorrent-Nox 5 2022-04-01 2022-09-28
Audio playing via receiver speaker instead of loud speaker 0 2021-09-28 2022-09-15
Idea: Categorize between coding fonts with ligatures and without and explain.. 1 2016-08-07 2022-09-24
Purchase Orders not Purged 1 2022-07-18 2022-09-11
Error: Template file not found at /home/ec2-user/environment/aws-saas-factory-ref-solution-serverless-saas/server/template.yml 4 2022-03-16 2022-09-22
Support for complex custom column types 1 2020-10-29 2022-09-20
Validation set split 2 2021-05-25 2022-08-25
AttributeError: module 'minirts' has no attribute 'ContextOptions' 10 2018-07-13 2022-09-21
[Bug]: Error when removing colorbar in constrained layout 3 2021-09-02 2022-09-26
Whitelist PDFs files with regex 6 2020-10-05 2022-09-20
API error codes documentation 5 2021-09-01 2022-09-27
Bug: Invalid test AWS credentials 1 2021-09-01 2022-09-21
Add a linear-scale dB vertical ruler 12 2022-03-15 2022-09-21
I fixxed style transfer and deepdream notebooks 0 2021-12-03 2022-09-17
masscan has no multi-thread isolation? 0 2022-05-09 2022-09-09
Office UI Fabric for Vue.js 6 2016-10-13 2022-09-28