browserify / browserify/bundle-collapser

From CommonJS to ES!?

Open
#29 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
191
Forks
11
PR merge metrics
No merged PRs in 30d

Description

How do I convert
```
const collapse = require('bundle-collapser/plugin');
```
to
```
import collapse from 'bundle-collapser/plugin';
```
I've tried this (along a trillion other wild guesses)
```
import { plugin as collapse } from 'bundle-collapser';

import * as collapse from 'bundle-collapser';

import * as collapse from 'bundle-collapser/plugin';

import { plugin as collapse } from 'bundle-collapser/plugin';
```

But Gulp keeps crashing …

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.