From a8b4356294d317ddce9098e12642db059a124c58 Mon Sep 17 00:00:00 2001 From: surmon-china Date: Sun, 12 Jun 2022 03:37:17 +0800 Subject: [PATCH] chore: add `codemirror` to libundler externals --- CHANGELOG.md | 2 +- libundler.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ebd8a38..329bd71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ### 5.1.0 (2022-06-12) -- Update codemirror dependencies to 6.x +- Upgrade codemirror dependencies to 6.x - The package no longer exports `@codemirror/view` `@codemirror/state` `@codemirror/basic-setup`. - Change the package [from `@codemirror/example-setup` to just `codemirror`](https://github.com/codemirror/basic-setup/blob/main/CHANGELOG.md#breaking-changes). diff --git a/libundler.config.ts b/libundler.config.ts index 0415235..0dce098 100644 --- a/libundler.config.ts +++ b/libundler.config.ts @@ -6,6 +6,6 @@ export default defineConfig({ entry: './src/index.ts', outDir: './dist', targets: ['esm', 'cjs'], - external: ['vue', 'csstype', /@codemirror\/.*/], + external: ['vue', 'csstype', 'codemirror', /@codemirror\/.*/], exports: 'named' })