2023-03-17 11:09:43 -04:00
|
|
|
const { config } = require("@swc/core/spack");
|
|
|
|
|
|
|
|
module.exports = config({
|
2021-04-23 18:58:51 -04:00
|
|
|
entry: {
|
|
|
|
'scripts.min': __dirname + '/js/index.js',
|
|
|
|
'tables.min': __dirname + '/js/base/sort-tables.js',
|
|
|
|
},
|
|
|
|
output: {
|
|
|
|
path: '../public/js',
|
|
|
|
},
|
|
|
|
options: {
|
|
|
|
jsc: {
|
2023-03-17 11:09:43 -04:00
|
|
|
parser: {
|
|
|
|
syntax: "ecmascript",
|
|
|
|
jsx: false,
|
|
|
|
},
|
|
|
|
target: 'es2016',
|
|
|
|
loose: false,
|
2021-04-23 18:58:51 -04:00
|
|
|
},
|
|
|
|
minify: true,
|
2023-03-17 11:09:43 -04:00
|
|
|
sourceMaps: false,
|
|
|
|
isModule: true,
|
2021-04-23 18:58:51 -04:00
|
|
|
}
|
2023-03-17 11:09:43 -04:00
|
|
|
});
|