Skip to content

Commit 6a8ccf8

Browse files
committed
remove external option
1 parent 8b57a43 commit 6a8ccf8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/svelte/messages/compile-errors/template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ HTML restricts where certain elements can appear. In case of a violation the bro
324324
325325
## svelte_options_invalid_attribute_value
326326

327-
> Valid values are %list%
327+
> Value must be %list%, if specified
328328
329329
## svelte_options_invalid_customelement
330330

packages/svelte/src/compiler/phases/1-parse/read/options.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,10 @@ export default function read_options(node) {
178178
case 'css': {
179179
const value = get_static_value(attribute);
180180

181-
if (value === 'injected' || value === 'external') {
181+
if (value === 'injected') {
182182
component_options.css = value;
183183
} else {
184-
e.svelte_options_invalid_attribute_value(attribute, `"injected", "external"`);
184+
e.svelte_options_invalid_attribute_value(attribute, `"injected"`);
185185
}
186186

187187
break;

packages/svelte/src/compiler/types/template.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export interface SvelteOptions {
7575
accessors?: boolean;
7676
preserveWhitespace?: boolean;
7777
namespace?: Namespace;
78-
css?: 'injected' | 'external';
78+
css?: 'injected';
7979
customElement?: {
8080
tag: string;
8181
shadow?: 'open' | 'none';

0 commit comments

Comments
 (0)