rebem / layers-loader Goto Github PK
View Code? Open in Web Editor NEW:factory: Component layers via webpack loader
License: MIT License
:factory: Component layers via webpack loader
License: MIT License
> [email protected] start D:\wspace\starter-kit
> start-runner ./tasks.js "dev"
→ env: start
→ env: NODE_ENV = development
→ env: done
→ webpack dev: start
→ webpack dev: http://localhost:3000/webpack-dev-server/
→ webpack dev: done
Time: 1491ms
chunk {0} bundle.js (main) 644 kB [rendered]
ERROR in ./src/index.js
Module not found: Error: Cannot resolve module 'D:wspacestarter-kitsrccomponentsappindex.js' in D:\wspace\starter-kit\src
@ ./src/index.js 5:53-113
ERROR in ./src/index.js
Module not found: Error: Cannot resolve module 'D:wspacestarter-kit
ebem-theme-reseuildappstyles.css' in D:\wspace\starter-kit\src
@ ./src/index.js 5:127-211
ERROR in ./src/index.js
Module not found: Error: Cannot resolve module 'D:wspacestarter-kitsrc heme-bootstrapappstyles.less' in D:\wspace\starter-kit\src
@ ./src/index.js 5:213-281
ERROR in ./src/index.js
Module not found: Error: Cannot resolve module 'D:wspacestarter-kitsrccomponentsappstyles.less' in D:\wspace\starter-kit\src
@ ./src/index.js 5:283-346
webpack: bundle is now VALID.
Hi
Just as the documentation says, the importFactory flag changes what is returned by using #
. But for some reason, when requesting a component in the consumer component (in a file defined as consumer in the rebem-layers-loader configuration) the returned value is always wrapped in React.createFactory, even if importFactory is set to false.
Not sure if this is intentional (then the documentation should probably mention this) or I am doing something wrong.
I wonder if it possible with current toolset to bundle a "merged" layer in dist. It would be great way to expose components to projects that not necessarily should know about underlie tech stack.
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.