Skip to content

Commit

Permalink
Examples. Add webpack-per-file
Browse files Browse the repository at this point in the history
  • Loading branch information
porotkin committed Sep 18, 2024
1 parent 976af0d commit 66ac763
Show file tree
Hide file tree
Showing 7 changed files with 286 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/webpack-per-file-issue/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
This addresses an issue with `per-file` compilation with Webpack

1. Just run

```shell
./gradlew build
```

2. Change "CUSTOM TEXT" from `Main.kt` to something else
3. Rebuild
4. See that compileSync file differs from the `dist`
3 changes: 3 additions & 0 deletions examples/webpack-per-file-issue/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins {
alias(kfc.plugins.application)
}
2 changes: 2 additions & 0 deletions examples/webpack-per-file-issue/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
kfc.module.name=webpack-per-file-issue
kfc.bundler=webpack
3 changes: 3 additions & 0 deletions examples/webpack-per-file-issue/src/jsMain/kotlin/Main.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
private fun main() {
SomeModule("CUSTOM TEXT")
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
class SomeModule(val value: String)
Loading

0 comments on commit 66ac763

Please sign in to comment.