(WIP) Switch the rest of the build setup to esbuild - 1
This commit is contained in:
parent
b13f1131c5
commit
7c2e12c233
7 changed files with 20 additions and 26 deletions
|
@ -1,13 +1,8 @@
|
|||
import path from 'path'
|
||||
import {
|
||||
convertObjectToWebpackDefinePaths,
|
||||
getEnvConfig,
|
||||
} from '../../../theatre/devEnv/webpack/createWebpackConfig'
|
||||
import {definedGlobals} from '../../../theatre/devEnv/buildUtils'
|
||||
|
||||
const playgroundDir = path.join(__dirname, '..')
|
||||
|
||||
const envConfig = getEnvConfig(true)
|
||||
|
||||
const port = 8080
|
||||
|
||||
require('esbuild')
|
||||
|
@ -24,13 +19,7 @@ require('esbuild')
|
|||
// watch: true,
|
||||
bundle: true,
|
||||
sourcemap: true,
|
||||
define: {
|
||||
global: 'window',
|
||||
...convertObjectToWebpackDefinePaths({
|
||||
process: {env: envConfig},
|
||||
$env: envConfig,
|
||||
}),
|
||||
},
|
||||
define: definedGlobals,
|
||||
},
|
||||
)
|
||||
.then((server: unknown) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue