Comments (4)
This happens due to tree shaking, for which so far there wasn't a reason to make it configurable. In your case, you'll want to export render
:
export default function render(…) {
…
}
module.exports = {
…
js: [{
…
exports: "render",
…
}]
};
You might also be interested in #97's WIP documentation: https://github.com/faucet-pipeline/faucet-pipeline-js/blob/docs/README.md
HTH.
from faucet-pipeline-js.
Thanks for the reply and the hint to the documentation. I did export the function, but it also generates the line export default render
which the caller cannot handle. I'm trying to use the generated views.js with the java Nashorn Scripting Engine, below is the error message to be specific.
I'm using these technologies for the first time (both the java as well as the javascript side) so it is possible that I can work around it in some other way that I do not yet know. I'll need to have another look at this at some later point. Thanks!
failed to evaluate script ('render' in 'filepath') <eval>:509:0 Expected an operand but found export export default render; ^
com.github.complate.ScriptingException: failed to evaluate script ('render' in 'filepath')
<eval>:509:0 Expected an operand but found export
export default render;
from faucet-pipeline-js.
from faucet-pipeline-js.
That indeed works! thanks for the help :) Closing this.
from faucet-pipeline-js.
Related Issues (20)
- An in-range update of rollup is breaking the build 🚨 HOT 2
- An in-range update of rollup is breaking the build 🚨 HOT 2
- An in-range update of rollup is breaking the build 🚨 HOT 4
- An in-range update of eslint-config-fnd-jsx is breaking the build 🚨 HOT 1
- An in-range update of faucet-pipeline-core is breaking the build 🚨 HOT 1
- support for dead code elimination via __DEV__
- code splitting
- An in-range update of rollup-plugin-terser is breaking the build 🚨
- Generate stand-alone source maps HOT 3
- An in-range update of rollup is breaking the build 🚨 HOT 2
- An in-range update of rollup-plugin-typescript2 is breaking the build 🚨 HOT 3
- An in-range update of rollup-plugin-terser is breaking the build 🚨 HOT 1
- An in-range update of rollup is breaking the build 🚨 HOT 3
- An in-range update of rollup-plugin-terser is breaking the build 🚨
- An in-range update of faucet-pipeline-core is breaking the build 🚨 HOT 1
- improve warning for unresolved implicit dependencies
- faucet-pipeline-js(x) does not replace process.env.NODE_ENV when bundling an React app HOT 9
- Replace Variables
- writeConfig: Support `inlineDynamicImports: true` 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 faucet-pipeline-js.