jaredhanson / jaredhanson/deamdify
resolving dependencies
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 196
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
Here is what I'm trying to do:
var jquery = require('jquery');
var jqm = require('jquery-mobile');
browserify -t debowerify -t deamdify main.js -o bundle.js
Here is output I get
Error: module "jquery" not found from "~/jqm/bower_components/jquery-mobile/js/jquery.mobile.animationComplete.js"
Basically, jqm depends on jquery which is defined in requirejs
How can use it from CJS module?
Or what is the way to fix it?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with main.js and the browserify command using the debowerify and deamdify transforms. Start by inspecting jquery.mobile.animationComplete.js, where the missing jquery module is reported, and trace how its dependency is resolved. Done means the command produces bundle.js without the module-not-found error and the CommonJS entry points work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100