-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
transpile typescript to babel-plugin-emotion doesn't work #535
Comments
I think this happens because typescripts compiles the imports so diff --git a/tsconfig.json b/tsconfig.json
index 874f32d..00bbfd4 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -2,7 +2,8 @@
"compilerOptions": {
"noImplicitAny": true,
"sourceMap": true,
- "module": "commonjs",
+ "module": "es2015",
+ "moduleResolution": "node",
"target": "es6",
"jsx": "react",
"types": [ I'm gonna close this, if this didn't fix your issue, please reopen the issue. |
Thank you for the fast response, that did the trick. |
Didn't work for me. .storybook/webpack.config.js
|
Didn't work if I use Theme. Like this:
And if use |
Same here, doesn't work if I use a theme, please reopen !! |
This is something which we plan to fix with #1220 |
I try to get this running properly. How could I set this up correctly?
You can find the sample code here.
emotion
version: 8.0.12react
version: 16.2.0Relevant code.
What you did:
Running webpack with the following settings:
.bablerc
Open up index.html.
What happened:
Reproduction:
https://github.com/Wezea/ts-with-babel-plugin-emotion
Problem description:
Typescript gets transpiled to es6 which is transpiled to es5 by using babel. But babel-plugin-emotion seems not to be triggered at all.
The text was updated successfully, but these errors were encountered: