update configs to allow external components

This commit is contained in:
Rich Harris
2018-05-15 08:22:28 -04:00
parent eadf6d77c6
commit 144eb411e1
2 changed files with 4 additions and 4 deletions

View File

@@ -8,13 +8,13 @@ module.exports = {
entry: config.client.entry(),
output: config.client.output(),
resolve: {
extensions: ['.js', '.json', '.html']
extensions: ['.js', '.json', '.html'],
mainFields: ['svelte', 'module', 'browser', 'main']
},
module: {
rules: [
{
test: /\.html$/,
exclude: /node_modules/,
use: {
loader: 'svelte-loader',
options: {