1 | const Dotenv = require('dotenv-webpack');
|
2 |
|
3 | module.exports = {
|
4 | type: 'react-component',
|
5 | npm: {
|
6 | esModules: true,
|
7 | umd: {
|
8 | global: 'PSReactSDK',
|
9 | externals: {
|
10 | react: 'React',
|
11 | },
|
12 | },
|
13 | },
|
14 | webpack: {
|
15 | extra: {
|
16 | plugins: [
|
17 | new Dotenv(),
|
18 | ],
|
19 | },
|
20 | },
|
21 | };
|