Comments (5)
Hm, I can't reproduce this with the following Brocfile.js
- it builds fine:
var broccoliSource = require('broccoli-source');
var src = new broccoliSource.WatchedDir('src');
module.exports = src;
Can you dig some more to narrow down the problem?
from broccoli-source.
Yes, I was digging more into it and it seems that at some point, I broke Broccoli as the whole. So it's not related to broccoli-source
. And then, I saw your comment. And I understood. I reduced my file so much that I didn't even have a module.exports
. This is what cause the break... Yes, you can blame me. Anyway, I take the opportunity to thank you for Broccoli (you're one of the main dev, right?) and please excuse me for the noise.
from broccoli-source.
hello.
I came to your problem, how do I solve this issue ?
from broccoli-source.
As explained above, do you have module.exports
statement in your file?
from broccoli-source.
This is the file I used
-------------------------------------- Brocfile.js---------------------
var tree = './app';
var ES6Modules = require('broccoli-es6modules');
var amdFiles = new ES6Modules(tree, {
format: 'amd',
bundleOptions: {
entry: 'app.js',
name: 'amdApp'
}
});
I realized due to the link below : module.exports is the object that's actually returned as the result of a require call. by
http://stackoverflow.com/questions/5311334/what-is-the-purpose-of-node-js-module-exports-and-how-do-you-use-it
but I cleaned all the lines ,The same problem came again.
from broccoli-source.
Related Issues (7)
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-source.