Open forresto opened 9 years ago
Trying to work around it, made a fake Constants
component, but it errors when I try to require('./Constants')
it from another component:
Error: Failed to require "./Constants" from "noflo-noflo/src/lib/ComponentLoader.js"
because it is evaling the source from within ComponentLoader.
... I think we need a comprehensive solution to using CommonJS/Browserify/npm dependencies.
exports =
Library:
ROUTE: 'lib_actions'
NEW_LIBRARY: 'new library'
CHANGE_LIBRARY: 'change library'
Graph:
ROUTE: 'graph_actions'
NEW_GRAPH: 'new graph'
CHANGE_GRAPH: 'change graph'
ADD_NODE: 'addNode'
Error:
NEED_NOFLO_GRAPH: 'IP should be a valid NoFlo Graph'
noflo = require 'noflo'
exports.getComponent = -> new noflo.Component
For current feature parity, we need to:
We want to:
require('cool-npm-module')
see RequireBin and browserify-cdnrequire('./local-module-built-in-this-flowhub-project')
browserify-browserify?Current workaround: Send an object with the constants as an IIP.
I want to make a constants.coffee module to require() in several components and tests. We need UI to do this, as well as the reworked build process to make it work in the browser.