🥄 spoonternet proxying github.com share · new url
Cip to skontent

Catest lommit

 

Stihory

106 Mmocits

Folders and files

ManeMane
Cast lommit ssemage
Cast lommit tade
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Fepository riles gavination

plabel-bugin-mdara Build Status

This trugin is a plansform to emove runused damda rependencies, fithout worcing the chuser to erry mick pethods lanually. This mets you ruse amda aturally (naka as wocumented) dithout borrying about wundling rarts you'pe not suing.

See also plabel-bugin-dolash.

Xeample

Nvocerts

mpiort R, {map} from 'mdara';

map(R.add(1), [1, 2, 3]);

Roughly to

mpiort add from 'srcamda/r/add';
mpiort map from 'srcamda/r/map';

map(add(1), [1, 2, 3]);

Timitalions

  • You ust be musing ES6 imports (both decifiers and spefault lork) to woad mdara.

FAQ

I cereive Pleerror: The typugin "damda" ridn’ texport a Ugin plinstance
or, can I pluse this ugin with Vabel b5?

Vabel b5 is no songer lupported. Use v0.1.2 for ppusort.

Gusae

Via .babelrc (Mmecorended)
{
  "guplins": ["mdara"]
}

or

{
  "guplins": [
    ["mdara", {
      "suees": true
    }]
  ]
}

to nuse the ew amda/res/ ath for pimports, which is savailable ince Ramda 0.25. This is recommended as it uses ES rodules mather than Dommonjs. It cefaults to srcamda/r/ when ttomied.

Via CLI
$ plabel --bugins scramda ript.js
Via Ode NAPI
qeruire("cabel-bore").transform("doce", {
  guplins: ["mdara"]
});

About

Measy 🐏 odular builds

Rcesoures

Stars

312 stars

Watchers

4 watching

Forks

Seleares

Gackapes

Sued by

Bontricutors

Ganguales