mirror of
https://github.com/woutdp/live_svelte
synced 2026-05-24 09:28:21 +00:00
Support esbuild 0.24.0
This commit is contained in:
parent
9204a5d251
commit
52ca9f8d81
5 changed files with 456 additions and 382 deletions
|
|
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## UNRELEASED
|
||||
|
||||
### Changed
|
||||
|
||||
- Upgraded to esbuild 0.24.0. This requires you to reconfigure the `build.js` file. An example can be found in `example_project/assets/build.js`.
|
||||
|
||||
## [0.14.0] - 2024-09-25
|
||||
|
||||
### Added
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ let optsClient = {
|
|||
outdir: "../priv/static/assets",
|
||||
logLevel: "info",
|
||||
sourcemap: watch ? "inline" : false,
|
||||
watch,
|
||||
tsconfig: "./tsconfig.json",
|
||||
plugins: [
|
||||
importGlobPlugin(),
|
||||
|
|
@ -37,7 +36,6 @@ let optsServer = {
|
|||
outdir: "../priv/svelte",
|
||||
logLevel: "info",
|
||||
sourcemap: watch ? "inline" : false,
|
||||
watch,
|
||||
tsconfig: "./tsconfig.json",
|
||||
plugins: [
|
||||
importGlobPlugin(),
|
||||
|
|
@ -48,17 +46,17 @@ let optsServer = {
|
|||
],
|
||||
}
|
||||
|
||||
const client = esbuild.build(optsClient)
|
||||
const server = esbuild.build(optsServer)
|
||||
|
||||
if (watch) {
|
||||
client.then(_result => {
|
||||
process.stdin.on("close", () => process.exit(0))
|
||||
process.stdin.resume()
|
||||
})
|
||||
esbuild
|
||||
.context(optsClient)
|
||||
.then(ctx => ctx.watch())
|
||||
.catch(_error => process.exit(1))
|
||||
|
||||
server.then(_result => {
|
||||
process.stdin.on("close", () => process.exit(0))
|
||||
process.stdin.resume()
|
||||
})
|
||||
esbuild
|
||||
.context(optsServer)
|
||||
.then(ctx => ctx.watch())
|
||||
.catch(_error => process.exit(1))
|
||||
} else {
|
||||
esbuild.build(optsClient)
|
||||
esbuild.build(optsServer)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ let optsClient = {
|
|||
outdir: "../priv/static/assets",
|
||||
logLevel: "info",
|
||||
sourcemap: watch ? "inline" : false,
|
||||
watch,
|
||||
tsconfig: "./tsconfig.json",
|
||||
plugins: [
|
||||
importGlobPlugin(),
|
||||
|
|
@ -37,7 +36,6 @@ let optsServer = {
|
|||
outdir: "../priv/svelte",
|
||||
logLevel: "info",
|
||||
sourcemap: watch ? "inline" : false,
|
||||
watch,
|
||||
tsconfig: "./tsconfig.json",
|
||||
plugins: [
|
||||
importGlobPlugin(),
|
||||
|
|
@ -48,17 +46,17 @@ let optsServer = {
|
|||
],
|
||||
}
|
||||
|
||||
const client = esbuild.build(optsClient)
|
||||
const server = esbuild.build(optsServer)
|
||||
|
||||
if (watch) {
|
||||
client.then(_result => {
|
||||
process.stdin.on("close", () => process.exit(0))
|
||||
process.stdin.resume()
|
||||
})
|
||||
esbuild
|
||||
.context(optsClient)
|
||||
.then(ctx => ctx.watch())
|
||||
.catch(_error => process.exit(1))
|
||||
|
||||
server.then(_result => {
|
||||
process.stdin.on("close", () => process.exit(0))
|
||||
process.stdin.resume()
|
||||
})
|
||||
esbuild
|
||||
.context(optsServer)
|
||||
.then(ctx => ctx.watch())
|
||||
.catch(_error => process.exit(1))
|
||||
} else {
|
||||
esbuild.build(optsClient)
|
||||
esbuild.build(optsServer)
|
||||
}
|
||||
|
|
|
|||
784
example_project/assets/package-lock.json
generated
784
example_project/assets/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -2,7 +2,7 @@
|
|||
"devDependencies": {
|
||||
"@types/lodash": "^4.14.192",
|
||||
"dynamic-marquee": "^2.6.2",
|
||||
"esbuild": "^0.16.17",
|
||||
"esbuild": "^0.24.0",
|
||||
"esbuild-plugin-import-glob": "^0.1.1",
|
||||
"esbuild-svelte": "^0.7.4",
|
||||
"lodash": "^4.17.21",
|
||||
|
|
|
|||
Loading…
Reference in a new issue