Comments (5)
It looks like you are using a config that's compatible with browserify-shimv2.
I would suggest to upgrade to v3 and adapt your shim config to match this format. You will have to use it directly in that case (instead of through grunt-browserify).
Off the bat I'd think that your path
should start with a ./
.
Have you filed an issue with grunt-browserify?
It is very hard for me to diagnose problems when browserify-shim
is not used via the intended API.
from browserify-shim.
@thlorenz thanks for the reply. If I use the new format, how can I keep browserify
as part of my watch task in grunt without using grunt-browserify
?
from browserify-shim.
At this point you can't because grunt-browserify works with the older version see this comment.
If you want to keep using grunt-browserify then you'd have to stick with the older version.
However you don't need a grunt watch task. You can either use watchify instead or just rebundle when the bundle is requested while you are developing like I demonstrated here.
I'd recommend that (rebundling on demand) since you want to avoid build steps as much as possible.
Alternatively if you don't run your own server, but are mainly just trying to write a client side app, I highly recommend beefy.
If you are using an express server I recommend appup or any of the tools listed here.
from browserify-shim.
Do you have any examples of browserify-shim
working with browserify-middleware
for express?
from browserify-shim.
No, I personally don't, but possibly those repos have examples and/or you could look through their tests.
from browserify-shim.
Related Issues (20)
- Only works if package.json in same directory as JS? HOT 1
- best practice for using browserify-shim in a dependency of a dependency HOT 2
- Shim modules that use undeclared variables in the global scope HOT 1
- Shimming Facebook SDK HOT 1
- npm@3 shrinkwrap --dev error HOT 3
- Usage without package.json HOT 4
- Peer [email protected] wants browserify@>= 2.3.0 < 14 HOT 2
- Doesn't work with jQuery plugins HOT 6
- Calling two functions in the same javascript file HOT 1
- browserify-shim export error HOT 1
- depends paths are local HOT 1
- Exposing global variable don't prevent from importing the library HOT 2
- Incompatible with npm link or yarn link HOT 4
- IDE cannot resolve imported local file HOT 2
- Deprecation warnings: Invalid 'main' field of 'find-parent-dir.js'.
- CVE-2022-37617/ Prototype pollution found in resolve-shims.js HOT 4
- CVE-2022-37621/ Prototype pollution found in resolve-shims.js HOT 3
- CVE-2022-37623 / Prototype pollution vulnerability found in resolve-shims.js HOT 1
- update to a maintained `through`? HOT 3
- Support browserify `>= 16`
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 browserify-shim.