Skip to content

Potentially unnecessary code in svelte.config.js #1294

@benmccann

Description

@benmccann

const dirname = path.dirname(fileURLToPath(import.meta.url));
does the following:

const dirname = path.dirname(fileURLToPath(import.meta.url));
...
		files: {
			routes: path.join(dirname, './src/routes'),
			appTemplate: path.join(dirname, './src/app.html'),
			hooks: {
				server: path.join(dirname, './src/hooks/server'),
				client: path.join(dirname, './src/hooks/client')
			},
			lib: path.join(dirname, './src/lib'),
			assets: path.join(dirname, './statics')
		}

This code seems like it should all be able to be deleted as it appears to be doing the default behavior. Maybe the cwd is set incorrectly when running? Can the dev and build commands be run from the docs-svelte-kit directory?

I'm asking because we hope to deprecate these options

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions