Skip to content

Commit

Permalink
build: storybook node imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Nov 28, 2024
1 parent 174f06e commit d7ca476
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions demos/storybook/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,18 @@ import $rdf from '../lib/env.js'
import stringToStream from 'string-to-stream'
import { Description, Stories, Subtitle, Title } from '@storybook/blocks'
import { setBasePath } from '@shoelace-style/shoelace/dist/utilities/base-path.js';
import process from "process";
import { Buffer } from "buffer";
import EventEmitter from "events";

SyntaxHighlighter.registerLanguage('turtle', turtle)

setBasePath('/shoelace/dist');

window.Buffer = Buffer;
window.process = process;
window.EventEmitter = EventEmitter;

const preview = {
tags: ['autodocs'],
parameters: {
Expand Down

0 comments on commit d7ca476

Please sign in to comment.