babel-plugin-import-graphql
Version:
Babel plugin to make .gql/.graphql files importable
10 lines (9 loc) • 350 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.importPattern = exports.newlinePattern = void 0;
var newlinePattern = /(\r\n|\r|\n)+/;
exports.newlinePattern = newlinePattern;
var importPattern = /^# *?import +?(?:\* +?from +?)?(?:'|"|`)(.+?)(?:'|"|`)(?:\r\n|\r|\n)*$/gm;
exports.importPattern = importPattern;