Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 272eaba

Browse files
authored
Document ES module limitation in fullOpt (#616)
1 parent ded614b commit 272eaba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/project/module.md

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.ESModule) }
1919
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.CommonJSModule) }
2020
{% endhighlight %}
2121

22+
Note: when using ECMAScript modules, the [optimizations performed in `fullLinkJS`](../internals/performance.html) are limited, because the Google Closure Compiler cannot be used with them.
23+
2224
When emitting a module, `@JSExportTopLevel`s are really *exported* from the Scala.js module.
2325
Moreover, you can use top-level `@JSImport` to [import native JavaScript stuff](../interoperability/facade-types.html#import) from other JavaScript module.
2426

0 commit comments

Comments
 (0)