2021-02-12 16:29:20 +00:00
|
|
|
const path = require('path')
|
2021-02-18 16:53:32 +00:00
|
|
|
|
|
|
|
/** @type {import('aegir').Options["build"]["config"]} */
|
2021-02-12 16:29:20 +00:00
|
|
|
const esbuild = {
|
|
|
|
inject: [path.join(__dirname, 'test/fixtures/node-globals.js')]
|
|
|
|
}
|
2021-02-18 16:53:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
/** @type {import('aegir').PartialOptions} */
|
|
|
|
const config = {
|
2021-02-12 16:29:20 +00:00
|
|
|
tsRepo: true,
|
|
|
|
docs: {
|
|
|
|
entryPoint: "src/index.ts"
|
|
|
|
},
|
|
|
|
test: {
|
|
|
|
browser :{
|
|
|
|
config: {
|
|
|
|
buildConfig: esbuild
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
build: {
|
2021-02-18 16:53:32 +00:00
|
|
|
bundlesizeMax: '214KB',
|
2021-02-12 16:29:20 +00:00
|
|
|
config: esbuild
|
|
|
|
}
|
|
|
|
}
|
2021-02-18 16:53:32 +00:00
|
|
|
|
|
|
|
module.exports = config
|