Closed bichotll closed 9 years ago
Hi guys, just curious.
Why does you library have a Prismic property with the library itself?
var Prismic = require('prismic.io').Prismic import {Prismic} from 'prismic.io';
var Prismic = require('prismic.io').Prismic
import {Prismic} from 'prismic.io';
Cheers, jaume
Hi,
It's because it can also be used in-browser, and in this case it becomes window.Prismic.
Hi guys, just curious.
Why does you library have a Prismic property with the library itself?
var Prismic = require('prismic.io').Prismic
import {Prismic} from 'prismic.io';
Cheers, jaume