We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
System: OS: macOS 15.2 CPU: (8) arm64 Apple M1 Memory: 72.06 MB / 8.00 GB Shell: 5.9 - /bin/zsh Browsers: Chrome: 131.0.6778.140 Safari: 18.2 npmPackages: @rslib/core: ^0.1.3 => 0.1.3
I want to create a lib with shared fonts. In src/fonts.css I have:
src/fonts.css
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; src: url("./fonts/Inter-Regular.woff2") format("woff2"); }
In rslib.config.mjs:
rslib.config.mjs
export default defineConfig({ source: { entry: { index: ['./src/**'], }, }, lib: [{format: 'esm', bundle: false}], output: {target: 'web'}, plugins: [pluginReact()], });
When I run pnpm build, I get error:
pnpm build
error Compile error: Failed to compile, check the errors for troubleshooting. File: .../src/fonts.css?__rslib_entry__:1:1 × Module build failed: ╰─▶ × TypeError: Cannot read properties of undefined (reading '__esModule')
https://github.com/rusmux/rslib-issue-demo
git clone [email protected]:rusmux/rslib-issue-demo.git cd rslib-issue-demo pnpm install pnpm build
The text was updated successfully, but these errors were encountered:
Can you provide a reproduction demo to help us address the issue?
Sorry, something went wrong.
@Timeless0911 Added
Currently, assets support in bundleless mode is still in development, we will track this issue.
closed by #582
you can try to configure as below when this pr is released.
output: { assetsPrefix: 'auto' }
Thanks!
SoonIter
No branches or pull requests
Version
System: OS: macOS 15.2 CPU: (8) arm64 Apple M1 Memory: 72.06 MB / 8.00 GB Shell: 5.9 - /bin/zsh Browsers: Chrome: 131.0.6778.140 Safari: 18.2 npmPackages: @rslib/core: ^0.1.3 => 0.1.3
Details
I want to create a lib with shared fonts. In
src/fonts.css
I have:In
rslib.config.mjs
:When I run
pnpm build
, I get error:Reproduce link
https://github.com/rusmux/rslib-issue-demo
Reproduce Steps
The text was updated successfully, but these errors were encountered: