How to use the isDirectiveLiteral function from @babel/types

Find comprehensive JavaScript @babel/types.isDirectiveLiteral code examples handpicked from public code repositorys.

174
175
176
177
178
179
180
181
182
183
184
185
  return dependencies;
}


function isStrictDirective(directive) {
  return (directive.value &&
          babelTypes.isDirectiveLiteral(directive.value) &&
          directive.value.value === 'use strict');
}


function replaceV8Builtins(code) {
fork icon22
star icon89
watch icon0

Other functions in @babel/types

Sorted by popularity

function icon

@babel/types.identifier is the most popular function in @babel/types (20936 examples)