-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstencil.config.ts
72 lines (70 loc) · 1.82 KB
/
stencil.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import { Config } from '@stencil/core';
import { sass } from '@stencil/sass';
import { reactOutputTarget } from '@stencil/react-output-target';
import nodePolyfills from 'rollup-plugin-node-polyfills';
import tailwind from 'stencil-tailwind-plugin';
const excludeComponents = [
'mvx-sign-transactions-panel',
'mvx-transaction-fee-component',
'mvx-pending-transactions-panel',
'mvx-ledger-connect-panel',
'mvx-ledger-connect',
'mvx-ledger-account-screen',
'mvx-ledger-connect-screen',
'mvx-ledger-confirm-screen',
'mvx-toast-list',
'mvx-generic-toast',
'mvx-custom-toast',
'mvx-simple-toast',
'mvx-transaction-toast-details-body',
'mvx-transaction-toast-details',
'mvx-transaction-toast-content',
'mvx-transaction-toast',
'mvx-transaction-toast-wrapper',
'mvx-sign-transaction-component',
'mvx-wallet-connect',
'mvx-wallet-connect-panel',
'mvx-transaction-toast-progress',
'mvx-token-component',
'mvx-fungible-component',
'mvx-balance-component',
];
export const config: Config = {
namespace: 'sdk-dapp-core-ui',
plugins: [
sass(),
tailwind({
tailwindCssPath: './src/global/tailwind.css',
}),
],
outputTargets: [
reactOutputTarget({
outDir: './dist/react',
stencilPackageName: '../../dist/types',
customElementsDir: '../web-components',
excludeComponents,
}),
{
type: 'dist-custom-elements',
externalRuntime: false,
generateTypeDeclarations: true,
dir: './dist/web-components',
},
{
type: 'dist',
copy: [{ src: 'assets', dest: 'assets' }],
esmLoaderPath: './loader',
},
// this is only for testing purposes
// {
// type: 'www',
// serviceWorker: null,
// },
],
rollupPlugins: {
after: [nodePolyfills()],
},
extras: {
enableImportInjection: true,
},
};