This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def swag(ip: str) -> int: | |
parts = ip.strip().split('.') | |
if len(parts) != 4: | |
raise ValueError("Invalid IPv4 address: must have 4 octets") | |
total = 0 | |
for i, p in enumerate(parts): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
vite: { | |
build: { | |
rollupOptions: { | |
output: { | |
manualChunks(id: string) { | |
if (id.includes('node_modules/')) { | |
return id | |
.split('node_modules/')[1] |