Skip to content Skip to sidebar Skip to footer

How To Export Global Variable From Browserify/babelify To Be Used In Project Without Browserify?

Scenario: I have 2 projects with quite different setup: Regular website, legacy code with simple gulp setup Small pet project. JS slider plugin written with help of ES6 classes (t

Solution 1:

Set the standalone option:

When opts.standalone is a non-empty string, a standalone module is created with that name and a umd wrapper. You can use namespaces in the standalone global export using a . in the string name as a separator, for example 'A.B.C'. The global export will be sanitized and camel cased.

Post a Comment for "How To Export Global Variable From Browserify/babelify To Be Used In Project Without Browserify?"