-
Notifications
You must be signed in to change notification settings - Fork 4
/
snowpack.config.js
47 lines (46 loc) · 1.05 KB
/
snowpack.config.js
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
// Snowpack Configuration File
// See all supported options: https://www.snowpack.dev/reference/configuration
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
'.': '/dist',
public: '/',
},
plugins: [
'@lingui/snowpack-plugin',
'@snowpack/plugin-react-refresh',
'@snowpack/plugin-dotenv',
['@snowpack/plugin-babel', {input: ['.tsx']}], // TODO: write eslint rule to prevent usage of macros in non-tsx files
'@snowpack/plugin-optimize',
],
packageOptions: {
knownEntrypoints: ['react/jsx-runtime'],
},
devOptions: {
port: parseInt(PORT),
open: BROWSER,
},
buildOptions: {
sourcemap: true,
},
exclude: [
'node_modules',
'.env',
'.example.env',
'.gitignore',
'.npmrc',
'babel.config.json',
'LICENSE',
'package-lock.json',
'package.json',
'README.md',
'snowpack.config.js',
'tsconfig.dev.json',
'tsconfig.json',
],
alias: {
'@emotion/styled': '@emotion/styled/base',
atoms: './atoms',
pages: './pages',
},
}