mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 03:05:12 +00:00
support .svelte or .html extensions
This commit is contained in:
@@ -3,7 +3,7 @@ import * as assert from "assert";
|
||||
import * as fs from 'fs';
|
||||
import * as path from "path";
|
||||
|
||||
describe('with-sourcemaps', function() {
|
||||
describe('with-sourcemaps-webpack', function() {
|
||||
this.timeout(10000);
|
||||
|
||||
// hooks
|
||||
|
||||
@@ -9,13 +9,13 @@ module.exports = {
|
||||
entry: config.client.entry(),
|
||||
output: config.client.output(),
|
||||
resolve: {
|
||||
extensions: ['.mjs', '.js', '.json', '.html'],
|
||||
extensions: ['.mjs', '.js', '.json', '.html', '.svelte'],
|
||||
mainFields: ['svelte', 'module', 'browser', 'main']
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.html$/,
|
||||
test: /\.(html|svelte)$/,
|
||||
use: {
|
||||
loader: 'svelte-loader',
|
||||
options: {
|
||||
@@ -43,13 +43,13 @@ module.exports = {
|
||||
output: config.server.output(),
|
||||
target: 'node',
|
||||
resolve: {
|
||||
extensions: ['.mjs', '.js', '.json', '.html'],
|
||||
extensions: ['.mjs', '.js', '.json', '.html', '.svelte'],
|
||||
mainFields: ['svelte', 'module', 'browser', 'main']
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.html$/,
|
||||
test: /\.(html|svelte)$/,
|
||||
use: {
|
||||
loader: 'svelte-loader',
|
||||
options: {
|
||||
|
||||
Reference in New Issue
Block a user