You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/preprocessing.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -248,6 +248,8 @@ The Babel preprocessor accepts an options object which is passed onto the babel
248
248
249
249
`Svelte` expects your JavaScript to be in at least ES6 format, so make sure to set your Babel configuration accordingly.
250
250
251
+
If you are using TypeScript through `@babel/plugin-transform-typescript`, set [onlyremovetypeimports](https://babeljs.io/docs/en/babel-preset-typescript#onlyremovetypeimports) to `true` so that all value imports are preserved.
252
+
251
253
_Note: If you want to transpile your app to be supported in older browsers, you must run babel from the context of your bundler._
0 commit comments