Created
October 15, 2020 00:01
-
-
Save NickBeeuwsaert/e091e6dd45dc7c639fff91a87ee5fd7e to your computer and use it in GitHub Desktop.
Sample to demonstrate microbundle not working with typescript and css modules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"build:js": "microbundle -i test.js -o js_out/ -f modern", | |
"build:ts": "microbundle -i test.ts -o ts_out/ -f modern" | |
}, | |
"dependencies": { | |
"microbundle": "^0.12.4" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as styles from "./test.module.css"; | |
console.log(styles); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.btn { | |
color: red; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as styles from "./test.module.css"; | |
console.log(styles); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment