Comments (2)
Could you wrap the tree (node) in something, and attach the metadata there?
I'd caution against accessing inputPaths
and inputNodes
from outside a node. They are not part of any "official" Broccoli API - a future broccoli-plugin version could in theory do away with either of them. The way Broccoli communicates with nodes is through an as-of-yet undocumented but fixed hidden API - broccoli-plugin puts a nice, usable layer on top of this.
from broccoli-plugin.
Yea I could just pass in the meta data with the tree attached to it and then internally peel off the trees and set them on the plugin.
Yea I'm not touching inputPaths
or inputNodes
outside of the plugin.
Thanks Jo, I'll close this issue out.
from broccoli-plugin.
Related Issues (17)
- Make inputTrees immutable HOT 4
- Example code fails with TypeError: Missing `new` operator HOT 1
- Narrowing down caching failure - RFC HOT 56
- How do we handle dependencies that are not within the input tree? HOT 1
- This project appears to introduce ~239 files via itself and its deps
- better "cleanup" idea HOT 5
- HTML elements don't have closing tags
- Return rejected promise HOT 6
- got [object Object] for inputNodes[1] HOT 6
- trackInputChanges fails silently on older broccoli versions HOT 1
- builtin walkSync for this.output, this.input or `fake fs` HOT 1
- cachePath persistence. HOT 2
- Snyk shows high vulnerable issue through dependencies
- tests appear to require the internet HOT 4
- `multidep` failure on node@15
- Not working with ember-auto-import & absolute input paths HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from broccoli-plugin.