Comments (3)
Browserify is quite tricky than it should be. Currently it behaves abnormally when trying to compile es2015 modules located under node_modules folder. I filed a separate issue in babelify since it's weird that it would work if the project was under bower_components folder, but wouldn't work when under node_modules folder.
So the workaround that I think would work across the board (ie. getting xjs through npm or bower) is by modifying the ES5 bundled version of xjs framework to work with es2015. (That is, always add module.exports = _require('xjs'); to the end of the file).
The gulp task shall create an xjs-es2015.js file that would work for browserify-based projects. I shall commit it on a separate branch and reference it to this issue for you guys (@SML-MeSo and @Matrim-Cauthon ) to review.
from xjs.
Please also check if there will be any necessary changes to our existing documentation / if there are new articles that need to be written accordingly.
from xjs.
Yes, we'll need to modify the tutorial for developing plugins using es2015 to include an option of using a bundled version rather than the modular approach. Key differences is that the bundled version would work with browserify and webpack, whereas the modular version would work only on webpack (for now, until babelify supports it).
I filed a separate issue on xjsframework.github.io's issue tracker (xjsframework/xjsframework.github.io#10)
from xjs.
Related Issues (20)
- Issues with case sensitive matching HOT 1
- Allow `duplicate` item calls to return UIDs of newly added sources
- Expose method to refresh source on show and on scene enter
- Fix documentation
- OnAsyncCallback should handle more than two parameters
- Typescript type definitions HOT 1
- Ability to copy presets
- Provide event callbacks for presets
- How to get source id for item HOT 5
- Set 'play on source show' on media items HOT 1
- Bug ActionAfterPlayback; wrong constants HOT 1
- Bug: isVideo returns false on looping videos
- getPlaybackDuration only works for active scene HOT 1
- Race condition for isVisible (and possibly more checks) HOT 1
- from php script i want to change dynamically source media HOT 3
- Apply new audio changes to XJS HOT 2
- Xsplit Broadcaster extension store
- Stream and recording start/stop event notification HOT 4
- Unable to get name of Scenes HOT 5
- Which kind of format must be? HOT 2
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 xjs.