Use ESBuild for frontend build.
Replacing webpack by ESBuild for client code compilation (as in the official quickstart plugin). So we can remove deprecated webpack dependencies. Note: webpack is still used for ConverseJS build. This may be removed soon. Related to issue #122.
This commit is contained in:
@ -205,3 +205,5 @@ function launchTests (): void {
|
||||
}
|
||||
|
||||
launchTests()
|
||||
|
||||
export {}
|
||||
|
@ -13,6 +13,9 @@
|
||||
"noImplicitReturns": true,
|
||||
"strictBindCallApply": true, // should already be true because of strict:true
|
||||
"noUnusedLocals": true,
|
||||
"allowSyntheticDefaultImports": true, // Seems necessary for peertube types to work
|
||||
"isolatedModules": true, // Needed by esbuild https://esbuild.github.io/content-types/#isolated-modules
|
||||
"esModuleInterop": true, // Needed by esbuild https://esbuild.github.io/content-types/#es-module-interop
|
||||
"outDir": "../dist/client",
|
||||
"paths": {
|
||||
"shared/*": ["../shared/*"]
|
||||
|
@ -50,7 +50,9 @@ function displayButton ({
|
||||
buttonContainer.append(button)
|
||||
}
|
||||
|
||||
export type {
|
||||
displayButtonOptions
|
||||
}
|
||||
export {
|
||||
displayButtonOptions,
|
||||
displayButton
|
||||
}
|
||||
|
@ -103,6 +103,8 @@ export {
|
||||
closeSVG,
|
||||
openChatSVG,
|
||||
openBlankChatSVG,
|
||||
shareChatUrlSVG,
|
||||
shareChatUrlSVG
|
||||
}
|
||||
export type {
|
||||
SVGButton
|
||||
}
|
||||
|
@ -66,8 +66,10 @@ function getIframeUri (
|
||||
return iframeUriStr
|
||||
}
|
||||
|
||||
export type {
|
||||
UriOptions
|
||||
}
|
||||
export {
|
||||
UriOptions,
|
||||
getBaseRoute,
|
||||
getIframeUri
|
||||
}
|
||||
|
Reference in New Issue
Block a user