ek-esbuild-module
v0.0.1
Published
#### Installation ```bash # yarn yarn add ek-esbuild-module
Downloads
2
Readme
ESBuild Nuxt Module
Installation
# yarn
yarn add ek-esbuild-module
# npm
npm install ek-esbuild-module
Usage
export default {
buildModules: [
// Esbuild module
'ek-esbuild-module',
]
}
Custom Configuration
export default {
buildModules: [
// Esbuild module
'ek-esbuild-module',
],
// Nuxt config key to alter default configuration
esbuild: {
// @TODO debugger: boolean
// Available targets: https://esbuild.github.io/api/#target
esbuildLoaderOptions: {
client: {
target: 'es2015',
},
server: {
target: 'node14',
},
modern: {
target: 'es2015',
},
},
esbuildMinifyOptions: {
client: {
target: 'es2015',
},
server: {
target: 'node14',
},
modern: {
target: 'es2015',
},
},
modules: {
esbuildLoader: boolean,
esbuildMinifier: boolean,
},
},
}