Configuring spack

Basics#

spack can be configured with spack.config.js. Config file for the spack is almost simillar to webpack. In future, I'll add a webpack-compatible plugin system.

Basic example:

const { config } = require('@swc/core/spack')
module.exports = config({
entry: {
'web': __dirname + '/src/index.ts',
},
output: {
path: __dirname + '/lib'
},
module: {},
});

entry#

output#

module#

TODO: rules

Using array#

Examples#

Last updated on by ๊ฐ•๋™์œค