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 Feb 28, 2024
1 parent 1bb66fa commit 986a471
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion npm/mount-utils/create-rollup-entry.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export function createEntries (options) {
input,
config = {},
} = options
const { dtsOptions = {} } = config

const banner = `
/**
Expand Down Expand Up @@ -72,7 +73,7 @@ export function createEntries (options) {
input,
output: [{ file: 'dist/index.d.ts', format: 'es' }],
plugins: [
dts({ respectExternal: true }),
dts({ respectExternal: true, ...dtsOptions }),
{
name: 'cypress-types-reference',
// rollup-plugin-dts does not add '// <reference types="cypress" />' like rollup-plugin-typescript2 did so we add it here.
Expand Down
3 changes: 3 additions & 0 deletions npm/vue2/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import json from '@rollup/plugin-json'
import replace from '@rollup/plugin-replace'

const config = {
dtsOptions: {
respectExternal: false
},
external: [
'vue',
],
Expand Down

0 comments on commit 986a471

Please sign in to comment.