2021-07-29 21:48:46 +02:00
|
|
|
import { jsConfig } from './webpack.config.base';
|
2017-04-16 15:38:48 +02:00
|
|
|
|
2021-09-30 22:56:42 +02:00
|
|
|
const umdConfig = jsConfig();
|
|
|
|
umdConfig.mode = 'production';
|
|
|
|
umdConfig.output.filename = '[name].min.js';
|
2017-04-16 15:38:48 +02:00
|
|
|
|
2021-09-30 22:56:42 +02:00
|
|
|
const esmConfig = jsConfig();
|
|
|
|
esmConfig.mode = 'production';
|
|
|
|
esmConfig.output.library = {
|
|
|
|
type: 'module',
|
|
|
|
};
|
|
|
|
esmConfig.experiments = {
|
|
|
|
outputModule: true,
|
|
|
|
};
|
2021-10-01 15:49:32 +02:00
|
|
|
esmConfig.output.filename = '[name].esm.min.mjs';
|
2021-09-30 22:56:42 +02:00
|
|
|
|
|
|
|
export default [umdConfig, esmConfig];
|