In a large bowl, add the shrimp, sweet chili sauce, soy sauce, garlic, and grated ginger. Mix well so every shrimp is coated evenly. Let the shrimp marinate for about 10–15 minutes to absorb all the flavors.
While the shrimp is marinating, cut fresh pineapple into bite-sized chunks. If using canned pineapple, drain it thoroughly to avoid excess liquid during cooking.
Heat olive oil in a large skillet over medium-high heat. Add the shrimp in a single layer and cook for about 2–3 minutes per side. The shrimp should turn pink and opaque without curling too tightly.
Once the shrimp are nearly cooked, add the pineapple chunks to the skillet. Stir gently and cook for another 2–3 minutes so the pineapple warms and blends with the sauce.
Remove from heat and drizzle lime juice over the shrimp if using. Garnish with fresh cilantro and serve immediately while hot.