-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstencil.config.ts
More file actions
45 lines (43 loc) · 1.1 KB
/
stencil.config.ts
File metadata and controls
45 lines (43 loc) · 1.1 KB
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
import {Config} from '@stencil/core';
//import nodePolyfills from "rollup-plugin-polyfill-node";
//import builtins from 'rollup-plugin-node-builtins';
//import globals from 'rollup-plugin-node-globals';
import nodePolyfills from "rollup-plugin-node-polyfills";
import 'dotenv/config'
// https://stenciljs.com/docs/config
export const config: Config = {
globalStyle: 'src/global/app.css',
globalScript: 'src/global/app.ts',
taskQueue: 'async',
outputTargets: [
{
type: 'www',
// comment the following line to disable service workers in production
serviceWorker: null,
baseUrl: 'https://myapp.local/',
polyfills: false
},
],
env: {
INFURA_API_KEY: process.env.INFURA_API_KEY
},
nodeResolve: {
module: true,
browser: true,
jsnext: true,
main: true,
preferBuiltins: false,
},
rollupPlugins: {
after: [
// TODO: these may be required for attestation library.
// They have been commented since Torus & WalletConnect modules are now imported as UMD which fixes polyfill issues
//globals(),
//builtins(),
nodePolyfills({
exclude: "buffer"
})
]
},
sourceMap: true
};