-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] Any idea on how to use with preact
?
#29
Comments
Hacking a bit further, I think that is something wrong with preactjs-templates/default. Not sure though. I was able to get it up and running with preactjs-templates/typescript. Since this is a new and small project, I will give it a try. BUT(!), if you have any clue about the original post, please let me know ;) Cheers. P.S.: Great transformer! I loved the __macro thingie :) |
@douggr In pug-as-jsx-loader/examples/preact-default/preact.config.js Lines 12 to 26 in b74ad07
If you are using Babel 7 or higher, try the options below loader: require.resolve('babel-loader'),
options: {
presets: ['@babel/preset-env', '@babel/preset-react'],
}, Enjoy using the following Pug template!, Thank you! |
Hello! Well, this is awkward.
This is funny, because if I load the transpiled file instead, it works like a charm.
Options:
Output
index.pug
index.js
Transpiled file:
The text was updated successfully, but these errors were encountered: