bem-sdk-archive / bem-decl

:capital_abcd: Manage declaration of BEM entities. DEPRECATED →
https://github.com/bem/bem-sdk/tree/master/packages/decl
Other
11 stars 3 forks source link

make possible to work with browserify #80

Closed a-x- closed 7 years ago

a-x- commented 7 years ago

current obstacle is:

lib/index.js:

load: require('./load'),

lib/load.js:

const fs = require('graceful-fs');

ll be cool, if lib/index.js ll not agregate all lib modules into itself

a-x- commented 7 years ago

/cc @zxqfox

a-x- commented 7 years ago

as a another solution bem-decl make use fetch instead of fs in the browser enviroment.

on the other hand it may switch off fs for browsers ever

a-x- commented 7 years ago

i made my own fork now: https://github.com/bem-kit/bem-decl

using:

const bemdeclNormalize = require('bem-decl/lib/normalize')
a-x- commented 7 years ago

[invalid]

require('bem-decl/lib/normalize') works perfectly in the main bem-sdk trunk now.