From 6b8a0bba792f6f4ebb2294508c081ec2eeccfcb8 Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Mon, 26 Sep 2022 21:45:36 -0400 Subject: [PATCH] Add reference to webpack types --- code/addons/a11y/src/index.ts | 2 ++ code/addons/actions/src/index.ts | 2 ++ code/addons/backgrounds/src/index.ts | 2 ++ code/addons/jest/src/index.ts | 2 ++ code/addons/links/src/index.ts | 2 ++ code/addons/measure/src/index.ts | 2 ++ code/addons/outline/src/index.ts | 2 ++ code/addons/storysource/src/index.ts | 2 ++ 8 files changed, 16 insertions(+) diff --git a/code/addons/a11y/src/index.ts b/code/addons/a11y/src/index.ts index 1563fe0c340a..6303d598f490 100644 --- a/code/addons/a11y/src/index.ts +++ b/code/addons/a11y/src/index.ts @@ -1,3 +1,5 @@ +/// + import type { AnyFramework, DecoratorFunction } from '@storybook/csf'; import deprecate from 'util-deprecate'; import { dedent } from 'ts-dedent'; diff --git a/code/addons/actions/src/index.ts b/code/addons/actions/src/index.ts index 8eeba5a84f10..221afdabf34f 100644 --- a/code/addons/actions/src/index.ts +++ b/code/addons/actions/src/index.ts @@ -1,3 +1,5 @@ +/// + export * from './constants'; export * from './models'; export * from './preview'; diff --git a/code/addons/backgrounds/src/index.ts b/code/addons/backgrounds/src/index.ts index 644402abb41c..d6968d6ab3e3 100644 --- a/code/addons/backgrounds/src/index.ts +++ b/code/addons/backgrounds/src/index.ts @@ -1,3 +1,5 @@ +/// + if (module && module.hot && module.hot.decline) { module.hot.decline(); } diff --git a/code/addons/jest/src/index.ts b/code/addons/jest/src/index.ts index 08398c74c7c2..2e8b0715121d 100644 --- a/code/addons/jest/src/index.ts +++ b/code/addons/jest/src/index.ts @@ -1,3 +1,5 @@ +/// + import { addons } from '@storybook/addons'; import { normalize, sep } from 'upath'; import { ADD_TESTS, defineJestParameter } from './shared'; diff --git a/code/addons/links/src/index.ts b/code/addons/links/src/index.ts index e9c50d0217c8..071b1de97b79 100644 --- a/code/addons/links/src/index.ts +++ b/code/addons/links/src/index.ts @@ -1,3 +1,5 @@ +/// + import { dedent } from 'ts-dedent'; let hasWarned = false; diff --git a/code/addons/measure/src/index.ts b/code/addons/measure/src/index.ts index 644402abb41c..d6968d6ab3e3 100644 --- a/code/addons/measure/src/index.ts +++ b/code/addons/measure/src/index.ts @@ -1,3 +1,5 @@ +/// + if (module && module.hot && module.hot.decline) { module.hot.decline(); } diff --git a/code/addons/outline/src/index.ts b/code/addons/outline/src/index.ts index 644402abb41c..d6968d6ab3e3 100644 --- a/code/addons/outline/src/index.ts +++ b/code/addons/outline/src/index.ts @@ -1,3 +1,5 @@ +/// + if (module && module.hot && module.hot.decline) { module.hot.decline(); } diff --git a/code/addons/storysource/src/index.ts b/code/addons/storysource/src/index.ts index a5cd9202f547..5edaf4114ea1 100644 --- a/code/addons/storysource/src/index.ts +++ b/code/addons/storysource/src/index.ts @@ -1,3 +1,5 @@ +/// + import { ADDON_ID, PANEL_ID } from './events'; export { ADDON_ID, PANEL_ID };