How to use the util function from babel-core

Find comprehensive JavaScript babel-core.util code examples handpicked from public code repositorys.

133
134
135
136
137
138
139
140
141
142
143
144


function shouldIgnore(filename) {
  if (!ignore && !only) {
    return getRelativePath(filename).split(_path2.default.sep).indexOf("node_modules") >= 0;
  } else {
    return _babelCore.util.shouldIgnore(filename, ignore || [], only);
  }
}


function loader(m, filename) {
fork icon0
star icon0
watch icon1

+ 8 other calls in file

45
46
47
48
49
50
51
52
53
54
55
program.option("-p, --print [code]", "Evaluate script and print result");
program.option("-o, --only [globs]", "");
program.option("-i, --ignore [globs]", "");
program.option("-x, --extensions [extensions]", "List of extensions to hook into [.es6,.js,.es,.jsx]");
program.option("-w, --plugins [string]", "", _babelCore.util.list);
program.option("-b, --presets [string]", "", _babelCore.util.list);


var pkg = require("../package.json");
program.version(pkg.version);
program.usage("[options] [ -e script | script.js ] [arguments]");
fork icon0
star icon0
watch icon1

+ 51 other calls in file