From f24fc2b9bb9984d99ae411189fc466d46de859c5 Mon Sep 17 00:00:00 2001 From: Maxwell Weru Date: Tue, 5 Mar 2024 07:01:23 +0300 Subject: [PATCH] Inject shims if needed (#16) --- .changeset/curvy-carrots-pretend.md | 5 +++++ packages/markdownlayer/tsup.config.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/curvy-carrots-pretend.md diff --git a/.changeset/curvy-carrots-pretend.md b/.changeset/curvy-carrots-pretend.md new file mode 100644 index 0000000..42b371a --- /dev/null +++ b/.changeset/curvy-carrots-pretend.md @@ -0,0 +1,5 @@ +--- +"markdownlayer": patch +--- + +Inject shims if needed diff --git a/packages/markdownlayer/tsup.config.ts b/packages/markdownlayer/tsup.config.ts index ac935f0..6d2f440 100644 --- a/packages/markdownlayer/tsup.config.ts +++ b/packages/markdownlayer/tsup.config.ts @@ -15,6 +15,7 @@ export default defineConfig((options: Options) => ({ dts: true, minify: false, clean: true, + shims: true, sourcemap: true, external: ['react', 'react-dom', 'react/jsx-runtime', 'next', 'chokidar', 'webpack'], ...options,