💚 Fix embeds build and create-block CLI
This commit is contained in:
@@ -39,7 +39,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": {
|
||||
"react": "^16.0.0 || ^17.0.0 || ^18.0.0"
|
||||
|
||||
@@ -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 } }),
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user