mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 11:15:14 +00:00
Slot-based routing (#573)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
import minify_html from './utils/minify_html';
|
||||
import { create_compilers, create_main_manifests, create_manifest_data, create_serviceworker_manifest } from '../core';
|
||||
import { create_compilers, create_app, create_manifest_data, create_serviceworker_manifest } from '../core';
|
||||
import { copy_shimport } from './utils/copy_shimport';
|
||||
import read_template from '../core/read_template';
|
||||
import { CompileResult } from '../core/create_compilers/interfaces';
|
||||
@@ -71,7 +71,7 @@ export async function build({
|
||||
const manifest_data = create_manifest_data(routes);
|
||||
|
||||
// create src/node_modules/@sapper/app.mjs and server.mjs
|
||||
create_main_manifests({
|
||||
create_app({
|
||||
bundler,
|
||||
manifest_data,
|
||||
cwd,
|
||||
|
||||
@@ -4,7 +4,7 @@ import * as http from 'http';
|
||||
import * as child_process from 'child_process';
|
||||
import * as ports from 'port-authority';
|
||||
import { EventEmitter } from 'events';
|
||||
import { create_manifest_data, create_main_manifests, create_compilers, create_serviceworker_manifest } from '../core';
|
||||
import { create_manifest_data, create_app, create_compilers, create_serviceworker_manifest } from '../core';
|
||||
import { Compiler, Compilers } from '../core/create_compilers';
|
||||
import { CompileResult } from '../core/create_compilers/interfaces';
|
||||
import Deferred from './utils/Deferred';
|
||||
@@ -162,7 +162,7 @@ class Watcher extends EventEmitter {
|
||||
|
||||
try {
|
||||
manifest_data = create_manifest_data(routes);
|
||||
create_main_manifests({
|
||||
create_app({
|
||||
bundler: this.bundler,
|
||||
manifest_data,
|
||||
dev: true,
|
||||
@@ -190,7 +190,7 @@ class Watcher extends EventEmitter {
|
||||
() => {
|
||||
try {
|
||||
const new_manifest_data = create_manifest_data(routes);
|
||||
create_main_manifests({
|
||||
create_app({
|
||||
bundler: this.bundler,
|
||||
manifest_data, // TODO is this right? not new_manifest_data?
|
||||
dev: true,
|
||||
|
||||
@@ -6,7 +6,6 @@ const runtime = [
|
||||
'app.mjs',
|
||||
'server.mjs',
|
||||
'internal/shared.mjs',
|
||||
'internal/Sapper.svelte',
|
||||
'internal/layout.svelte',
|
||||
'internal/error.svelte'
|
||||
].map(file => ({
|
||||
|
||||
Reference in New Issue
Block a user