web-infra-dev / rspack Goto Github PK
View Code? Open in Web Editor NEWA fast Rust-based web bundler 🦀️
Home Page: https://rspack.dev
License: MIT License
A fast Rust-based web bundler 🦀️
Home Page: https://rspack.dev
License: MIT License
@underfin cc
less.js require cwd need arco pro with same folod node_modules
url assets hook
node_resolver clearfix
we didn't do too much about error reporting when rspack mets error and the error message is not readable for user.
use rspack-sources://
, ref: https://webpack.js.org/configuration/output/#outputdevtoolmodulefilenametemplate
we currently use named ModuleId and chunkId strategy which is good for development but not for production, which will cause bigger bundle size, we should support 'deterministic' for production usage, see https://webpack.js.org/configuration/optimization/#optimizationchunkids
https://webpack.js.org/configuration/optimization/#optimizationmoduleids
for more information
I think there is a workaround. We could easily transform a foo.svg
file into const Foo: Component = <img src="data:base64......" />
Originally posted by @iheyunfei in #175 (comment)
.svg
file is not supportedwe currently inject runtime code in html by hand, which is not suitable if we want the code run in other environment like node, so we need to move the runtime code into runtimeChunk.
Now the DataURI
loader will transform the content of the SVG file into base64, which will increase the content size a lot.
let id = 'abc';
const page = import(id);
For LoadedSource { content: Some("export default {}"), loader: None }
, we should resolve default loader for it.
SWC support goes first swc-project/swc#4646, after which I will implement this in rspack
fixture: examples/react
fixture css case
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.