Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 5e60710

Browse files
committed
fix: types
1 parent 482c88a commit 5e60710

File tree

7 files changed

+6
-2
lines changed

7 files changed

+6
-2
lines changed

nuxt.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
import './shims'
12
export { default } from './dist/nuxt'

rollup.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
import './shims'
12
export { default } from './dist/rollup'

scripts/postbuild.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async function run() {
1818
code = code.replace('exports.default =', 'module.exports =')
1919
code += 'exports.default = module.exports;'
2020
await fs.writeFile(file, code)
21-
await fs.writeFile(`${name}.d.ts`, `export { default } from './dist/${name}'\n`)
21+
await fs.writeFile(`${name}.d.ts`, `import './shims'\nexport { default } from './dist/${name}'\n`)
2222
}
2323
}
2424

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { PluginOptions } from './types'
44
import { transform } from './core'
55

66
export * from './core'
7-
export * from './types'
87

98
export default createUnplugin<PluginOptions>((options = {}) => {
109
const filter = createFilter(

types.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
import './shims'
12
export { default } from './dist/types'

vite.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
import './shims'
12
export { default } from './dist/vite'

webpack.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
import './shims'
12
export { default } from './dist/webpack'

0 commit comments

Comments
 (0)