2021-07-04 20:19:04 -07:00
|
|
|
import svgs from '../bin/svgs.js'
|
2019-03-02 19:02:06 -08:00
|
|
|
|
|
|
|
const inlineSvgs = svgs.filter(_ => _.inline).map(_ => `#${_.id}`)
|
|
|
|
const mode = process.env.NODE_ENV || 'production'
|
2018-12-15 19:21:20 -08:00
|
|
|
const dev = mode === 'development'
|
|
|
|
|
2018-12-18 00:43:51 -08:00
|
|
|
const resolve = {
|
|
|
|
extensions: ['.js', '.json', '.html'],
|
2020-11-29 14:13:27 -08:00
|
|
|
mainFields: ['svelte', 'module', 'browser', 'main'],
|
|
|
|
alias: {
|
2021-02-15 15:07:19 -08:00
|
|
|
// All browsers we target support Intl.PluralRules (or it's polyfilled).
|
|
|
|
// So format-message-interpret can fall back to that. This file is pretty big (9.83kB) and it's not needed.
|
2021-07-04 20:19:04 -07:00
|
|
|
'./plurals': '@stdlib/utils-noop',
|
|
|
|
'lookup-closest-locale': '@stdlib/utils-noop', // small, but also not needed
|
|
|
|
'svelte/store.umd.js': 'svelte/store.js' // have to use UMD for Mocha, but in Webpack we can use the ESM version
|
2020-11-29 14:13:27 -08:00
|
|
|
}
|
2018-12-18 00:43:51 -08:00
|
|
|
}
|
|
|
|
|
2021-07-04 20:19:04 -07:00
|
|
|
export {
|
2018-12-15 19:21:20 -08:00
|
|
|
mode,
|
2018-12-18 00:43:51 -08:00
|
|
|
dev,
|
2019-03-02 19:02:06 -08:00
|
|
|
resolve,
|
2021-07-04 16:38:58 -07:00
|
|
|
inlineSvgs
|
2018-12-15 19:21:20 -08:00
|
|
|
}
|