question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

node/browserify support

See original GitHub issue

What are those require('a:b') statements? They don’t work in node/browserify. How can I use it with browserify?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
F21commented, Jan 20, 2016

I was able to install the browserify-support branch using npm like so:

npm install git+https://github.com/FremyCompany/css-grid-polyfill.git#browserify-support --save

Then it’s just a matter of importing it (I am using webpack, so I imported it in my entrypoint file):

import 'css-polyfills'
0reactions
FremyCompanycommented, Nov 10, 2015

This is because I internally have only one project for my two main css polyfills. I will duplicate the package.json file to be able to customize them differently between the two projects, it makes sense.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Browserify
Browserify lets you require('modules') in the browser by bundling up all of your dependencies. Install Documentation · Source Code · Help + Articles...
Read more >
browserify/browserify: browser-side require() the node.js way
Use a node-style require() to organize your browser code and load modules installed by npm. browserify will recursively analyze all the require() calls...
Read more >
Publishing your first Browserify/Node module
Tutorial for get started with Browserify, and how to publish your first module to NPM.
Read more >
Use Node.js modules in web browsers using Browserify
In this article, we will discover how to use Node.js modules in a web browser. We will cover both ways of converting CommonJS...
Read more >
Getting Started with Browserify - SitePoint
Browserify allows us to use node.js style modules in the browser. We define dependencies and then Browserify bundles it all up into a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found