Open samijaber opened 10 months ago
Qwik Optimizer (rust)
If I generate an NPM package with entry points as index.cjs, index.mjs, then the build breaks. They need to be named index.qwik.cjs and index.qwik.mjs exactly.
index.cjs
index.mjs
index.qwik.cjs
index.qwik.mjs
https://github.com/samijaber/qwik-import-bug-repro/tree/index.qwik.-removed
branch: https://github.com/samijaber/qwik-import-bug-repro/tree/index.qwik.-removed
working commit: https://github.com/samijaber/qwik-import-bug-repro/commit/48b003f8980bbd0c4d917cd12cb4858dbf5a3c56
broken commit: https://github.com/samijaber/qwik-import-bug-repro/commit/0e387b2b4fd6a664954918a4eaff9fe5b6dd40c8
pnpm install
cd sdk && pnpm build
cd webapp && pnpm dev
System: OS: macOS 12.1 CPU: (10) arm64 Apple M1 Max Memory: 89.09 MB / 32.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 18.13.0 - ~/.asdf/installs/nodejs/18.13.0/bin/node Yarn: 1.22.19 - ~/.asdf/installs/nodejs/18.13.0/bin/yarn npm: 8.19.3 - ~/.asdf/plugins/nodejs/shims/npm Watchman: 2023.05.08.00 - /opt/homebrew/bin/watchman Browsers: Brave Browser: 115.1.56.20 Chrome: 115.0.5790.170 Firefox: 109.0.1 Safari: 15.2 npmPackages: @builder.io/qwik: ^1.2.7 => 1.2.7 vite: ^4.4.9 => 4.4.9
No response
@wmertens is this still an issue?
I think it might be in the next release
Which component is affected?
Qwik Optimizer (rust)
Describe the bug
If I generate an NPM package with entry points as
index.cjs
,index.mjs
, then the build breaks. They need to be namedindex.qwik.cjs
andindex.qwik.mjs
exactly.Reproduction
https://github.com/samijaber/qwik-import-bug-repro/tree/index.qwik.-removed
Steps to reproduce
branch: https://github.com/samijaber/qwik-import-bug-repro/tree/index.qwik.-removed
working commit: https://github.com/samijaber/qwik-import-bug-repro/commit/48b003f8980bbd0c4d917cd12cb4858dbf5a3c56
broken commit: https://github.com/samijaber/qwik-import-bug-repro/commit/0e387b2b4fd6a664954918a4eaff9fe5b6dd40c8
pnpm install
cd sdk && pnpm build
cd webapp && pnpm dev
System Info
Additional Information
No response