Skip to content

Commit

Permalink
chore[build]: respectExternal back to false for vue2 in dts
Browse files Browse the repository at this point in the history
  • Loading branch information
baboon-king committed Mar 5, 2024
1 parent da57923 commit 3e30e44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions npm/mount-utils/create-rollup-entry.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export function createEntries (options) {
formats,
input,
config = {},
dtsOptions = {},
} = options
const { dtsOptions = {} } = config

Expand Down
6 changes: 5 additions & 1 deletion npm/vue2/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { createEntries } from '@cypress/mount-utils/create-rollup-entry.mjs'
import json from '@rollup/plugin-json'
import replace from '@rollup/plugin-replace'

const dtsOptions = {
respectExternal: false,
}

const config = {
dtsOptions: {
respectExternal: false
Expand All @@ -28,4 +32,4 @@ const config = {
},
}

export default createEntries({ formats: ['es', 'cjs'], input: 'src/index.ts', config })
export default createEntries({ formats: ['es', 'cjs'], input: 'src/index.ts', config, dtsOptions})

0 comments on commit 3e30e44

Please sign in to comment.