-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hi,
I use your plugin for my typescript based SPA, but the compiled output (dev and prod builds) still contains es2017 code (e.g. class or async/await).
If I add
const { rule } = helpers.getLoadersByName(config, 'babel-loader')[0];
rule.test = /\.(js|jsx|ts|tsx)$/;
to my preact.config.js it starts working. I love the idea to use typescript only for typechecking and typestripping and babel for all kinds of transformations. Especially since @babel/preset-typescript (waiting for babel7 in preact-cli :)).
Is there anything Im missing?
Best regards,
otbe
kperwel and developit
Metadata
Metadata
Assignees
Labels
No labels