add - export variable

This commit is contained in:
娄涛 2018-08-23 16:21:47 +08:00
parent 3229f04d24
commit 85e5c35052

View File

@ -18,9 +18,9 @@ function transform(source) {
const addsMap = JSON.stringify(result.addsMap);
return `
var withStorySource = require('@storybook/addon-storysource').withStorySource;
var __STORY__ = ${sourceJson};
var __ADDS_MAP__ = ${addsMap};
export var withStorySource = require('@storybook/addon-storysource').withStorySource;
export var __STORY__ = ${sourceJson};
export var __ADDS_MAP__ = ${addsMap};
${result.source}
`;