Sha256: da265972f0bcbafab4788902e1f0f8603e1e5ff4ae36e94e08c745ca405ee763
Contents?: true
Size: 381 Bytes
Versions: 62
Compression:
Stored size: 381 Bytes
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = isModule; function isModule(path) { const { sourceType } = path.node; if (sourceType !== "module" && sourceType !== "script") { throw path.buildCodeFrameError(`Unknown sourceType "${sourceType}", cannot transform.`); } return path.node.sourceType === "module"; }
Version data entries
62 entries across 61 versions & 12 rubygems