V
V
Vladimir T.2016-01-19 10:36:25
JavaScript
Vladimir T., 2016-01-19 10:36:25

Is it possible to combine global and commonJS modules?

There is a project on angularJS broken into global modules wrapped in IIFE functions and glued together into one big bundle. How can one start using commonJS modules and es2015 in such a project?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kravchenko, 2016-01-19
@vachuahe

browserify itself will wrap your code in an IIFE and allow you to use commonjs
about es2015 - babel and babelify transform for browserify

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question