![]() ![]() Use it to speed up subsequent builds in watch mode - Rollup will only reanalyse the modules that have changed. (This example also demonstrates how to use an async IIFE and dynamic imports to avoid unnecessary module loading, which can be surprisingly slow.) Advanced functionality cache Type: ![]() The conversion back to a relative import is done as if output.file or output.dir were in the same location as the entry point or the common base directory of all entry points if there is more than one. log (x) // output // the different imports are merged import x from './external.js' console. log (x) // src/nested/nested.js // the import would point to the same file if it existed import x from '././external.js' console. log (x) // input // src/main.js (entry point) import x from './external.js' import './nested/nested.js' console. ![]() Js // input // src/main.js (entry point) import x from './external.js' import './nested/nested.js' console.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |