2
0

💚 Fix embeds build and create-block CLI

This commit is contained in:
Baptiste Arnaud
2024-03-19 10:38:55 +01:00
parent 56a23a14b6
commit a4c865ca26
35 changed files with 204 additions and 28 deletions

View File

@ -35,7 +35,8 @@
"rollup-plugin-typescript-paths": "1.4.0",
"tslib": "2.6.0",
"tsx": "3.12.7",
"typescript": "5.3.2"
"typescript": "5.3.2",
"@rollup/plugin-typescript": "11.1.2"
},
"peerDependencies": {
"next": "12.x || 13.x || 14.x",

View File

@ -2,6 +2,7 @@ import resolve from '@rollup/plugin-node-resolve'
import terser from '@rollup/plugin-terser'
import { babel } from '@rollup/plugin-babel'
import { typescriptPaths } from 'rollup-plugin-typescript-paths'
import typescript from '@rollup/plugin-typescript'
import fs from 'fs'
const extensions = ['.ts', '.tsx']
@ -26,6 +27,7 @@ const indexConfig = {
extensions,
}),
typescriptPaths({ preserveExtensions: true }),
typescript(),
terser({ format: { preamble } }),
],
}