Skip to content

Commit

Permalink
Add reference to webpack types
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed Sep 27, 2022
1 parent 34b5cd5 commit 6b8a0bb
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/addons/a11y/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="webpack-env" />

import type { AnyFramework, DecoratorFunction } from '@storybook/csf';
import deprecate from 'util-deprecate';
import { dedent } from 'ts-dedent';
Expand Down
2 changes: 2 additions & 0 deletions code/addons/actions/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="webpack-env" />

export * from './constants';
export * from './models';
export * from './preview';
Expand Down
2 changes: 2 additions & 0 deletions code/addons/backgrounds/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="webpack-env" />

if (module && module.hot && module.hot.decline) {
module.hot.decline();
}
Expand Down
2 changes: 2 additions & 0 deletions code/addons/jest/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="webpack-env" />

import { addons } from '@storybook/addons';
import { normalize, sep } from 'upath';
import { ADD_TESTS, defineJestParameter } from './shared';
Expand Down
2 changes: 2 additions & 0 deletions code/addons/links/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="webpack-env" />

import { dedent } from 'ts-dedent';

let hasWarned = false;
Expand Down
2 changes: 2 additions & 0 deletions code/addons/measure/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="webpack-env" />

if (module && module.hot && module.hot.decline) {
module.hot.decline();
}
Expand Down
2 changes: 2 additions & 0 deletions code/addons/outline/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="webpack-env" />

if (module && module.hot && module.hot.decline) {
module.hot.decline();
}
Expand Down
2 changes: 2 additions & 0 deletions code/addons/storysource/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="webpack-env" />

import { ADDON_ID, PANEL_ID } from './events';

export { ADDON_ID, PANEL_ID };
Expand Down

0 comments on commit 6b8a0bb

Please sign in to comment.