Skip to content
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

cache within single synchronous transform #80

Closed
danielroe opened this issue Sep 5, 2022 · 6 comments
Closed

cache within single synchronous transform #80

danielroe opened this issue Sep 5, 2022 · 6 comments

Comments

@danielroe
Copy link
Member

danielroe commented Sep 5, 2022

On jiti issue, in a fresh Nuxt project, it transpiles the same dependency up to 16x different times because we have set requireCache: false in c12 - almost certainly for proper HMR? Is there an intermediate step that might preserve cache within an single synchronous instance of jiti('some file'), perhaps?

Sorted list of dependencies transpiled in a fresh nuxt 3 project in order to read the `nuxt.config`
dep log
@[email protected]/node_modules/@nuxt/kit-edge/dist/index.mjs [jiti] [transpile esm module]
@[email protected]/node_modules/@nuxt/schema-edge/dist/index.mjs [jiti] [transpile esm module]
@rollup[email protected][email protected]/node_modules/@rollup/plugin-alias/dist/index.js [jiti] [native]
@rollup[email protected][email protected]/node_modules/@rollup/plugin-alias/dist/index.js [jiti] [native]
@rollup[email protected][email protected]/node_modules/@rollup/plugin-commonjs/dist/cjs/index.js [jiti] [transpile]
@rollup[email protected][email protected]/node_modules/@rollup/plugin-commonjs/dist/cjs/index.js [jiti] [transpile]
@rollup[email protected][email protected]/node_modules/@rollup/plugin-inject/dist/index.js [jiti] [native]
@rollup[email protected][email protected]/node_modules/@rollup/plugin-inject/dist/index.js [jiti] [native]
@rollup[email protected][email protected]/node_modules/@rollup/plugin-json/dist/index.js [jiti] [native]
@rollup[email protected][email protected]/node_modules/@rollup/plugin-json/dist/index.js [jiti] [native]
@rollup[email protected][email protected]/node_modules/@rollup/plugin-node-resolve/dist/cjs/index.js [jiti] [transpile]
@rollup[email protected][email protected]/node_modules/@rollup/plugin-node-resolve/dist/cjs/index.js [jiti] [transpile]
@rollup[email protected][email protected]/node_modules/@rollup/plugin-replace/dist/rollup-plugin-replace.cjs.js [jiti] [native]
@rollup[email protected][email protected]/node_modules/@rollup/plugin-replace/dist/rollup-plugin-replace.cjs.js [jiti] [native]
@rollup[email protected][email protected]/node_modules/@rollup/plugin-wasm/dist/index.js [jiti] [transpile]
@rollup[email protected][email protected]/node_modules/@rollup/plugin-wasm/dist/index.js [jiti] [transpile]
@rollup[email protected][email protected]/node_modules/@rollup/pluginutils/dist/cjs/index.js [jiti] [native]
@rollup[email protected][email protected]/node_modules/@rollup/pluginutils/dist/cjs/index.js [jiti] [native]
@rollup[email protected][email protected]/node_modules/@rollup/pluginutils/dist/cjs/index.js [jiti] [native]
@rollup[email protected][email protected]/node_modules/@rollup/pluginutils/dist/cjs/index.js [jiti] [native]
@rollup[email protected]/node_modules/@rollup/pluginutils/dist/cjs/index.js [jiti] [native]
@rollup[email protected]/node_modules/@rollup/pluginutils/dist/cjs/index.js [jiti] [native]
@rollup[email protected]/node_modules/@rollup/pluginutils/dist/cjs/index.js [jiti] [native]
@rollup[email protected]/node_modules/@rollup/pluginutils/dist/cjs/index.js [jiti] [native]
@vercel[email protected]/node_modules/@vercel/nft/out/index.js [jiti] [native]
@vercel[email protected]/node_modules/@vercel/nft/out/index.js [jiti] [native]
@VUE[email protected]/node_modules/@vue/shared/index.js [jiti] [native]
/private/tmp/test-c12/nuxt.config.ts [jiti] [transpile]
[email protected]/node_modules/acorn/dist/acorn.mjs [jiti] [transpile esm module]
[email protected]/node_modules/acorn/dist/acorn.mjs [jiti] [transpile esm module]
[email protected]/node_modules/acorn/dist/acorn.mjs [jiti] [transpile esm module]
[email protected]/node_modules/acorn/dist/acorn.mjs [jiti] [transpile esm module]
[email protected]/node_modules/archiver/index.js [jiti] [native]
[email protected]/node_modules/archiver/index.js [jiti] [native]
[email protected][email protected]/node_modules/autoprefixer/lib/autoprefixer.js [jiti] [native]
[email protected]/node_modules/c12/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/c12/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/c12/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/chalk/source/index.js [jiti] [transpile esm module]
[email protected]/node_modules/chalk/source/index.js [jiti] [transpile esm module]
[email protected]/node_modules/chalk/source/utilities.js [jiti] [transpile esm module]
[email protected]/node_modules/chalk/source/utilities.js [jiti] [transpile esm module]
[email protected]/node_modules/chalk/source/vendor/ansi-styles/index.js [jiti] [transpile esm module]
[email protected]/node_modules/chalk/source/vendor/ansi-styles/index.js [jiti] [transpile esm module]
[email protected]/node_modules/chalk/source/vendor/supports-color/index.js [jiti] [transpile esm module]
[email protected]/node_modules/chalk/source/vendor/supports-color/index.js [jiti] [transpile esm module]
[email protected]/node_modules/chokidar/index.js [jiti] [native]
[email protected]/node_modules/chokidar/index.js [jiti] [native]
[email protected]/node_modules/chokidar/index.js [jiti] [native]
[email protected]/node_modules/chokidar/index.js [jiti] [native]
[email protected]/node_modules/chokidar/index.js [jiti] [native]
[email protected]/node_modules/chokidar/index.js [jiti] [native]
[email protected]/node_modules/colorette/index.cjs [jiti] [native]
[email protected]/node_modules/colorette/index.cjs [jiti] [native]
[email protected]/node_modules/commondir/index.js [jiti] [native]
[email protected]/node_modules/commondir/index.js [jiti] [native]
[email protected]/node_modules/consola/dist/consola.js [jiti] [native]
[email protected]/node_modules/consola/dist/consola.js [jiti] [native]
[email protected]/node_modules/consola/dist/consola.js [jiti] [native]
[email protected]/node_modules/cookie-es/dist/index.cjs [jiti] [native]
[email protected]/node_modules/cookie-es/dist/index.cjs [jiti] [native]
[email protected]/node_modules/cookie-es/dist/index.cjs [jiti] [native]
[email protected]/node_modules/create-require/create-require.js [jiti] [native]
[email protected]/node_modules/deepmerge/dist/cjs.js [jiti] [native]
[email protected]/node_modules/deepmerge/dist/cjs.js [jiti] [native]
[email protected]/node_modules/defu/dist/defu.cjs [jiti] [native]
[email protected]/node_modules/defu/dist/defu.cjs [jiti] [native]
[email protected]/node_modules/defu/dist/defu.cjs [jiti] [native]
[email protected]/node_modules/defu/dist/defu.cjs [jiti] [native]
[email protected]/node_modules/defu/dist/defu.cjs [jiti] [native]
[email protected]/node_modules/defu/dist/defu.cjs [jiti] [native]
[email protected]/node_modules/defu/dist/defu.cjs [jiti] [native]
[email protected]/node_modules/defu/dist/defu.cjs [jiti] [native]
[email protected]/node_modules/defu/dist/defu.cjs [jiti] [native]
[email protected]/node_modules/defu/dist/defu.cjs [jiti] [native]
[email protected]/node_modules/defu/dist/defu.cjs [jiti] [native]
[email protected]/node_modules/defu/dist/defu.cjs [jiti] [native]
[email protected]/node_modules/destr/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/destr/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/destr/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/destr/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/destr/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/dir-glob/index.js [jiti] [native]
[email protected]/node_modules/dir-glob/index.js [jiti] [native]
[email protected]/node_modules/dir-glob/index.js [jiti] [native]
[email protected]/node_modules/dir-glob/index.js [jiti] [native]
[email protected]/node_modules/dot-prop/index.js [jiti] [transpile esm module]
[email protected]/node_modules/dot-prop/index.js [jiti] [transpile esm module]
[email protected]/node_modules/dotenv/lib/main.js [jiti] [native]
[email protected]/node_modules/dotenv/lib/main.js [jiti] [native]
[email protected]/node_modules/dotenv/lib/main.js [jiti] [native]
[email protected]/node_modules/duplexer/index.js [jiti] [native]
[email protected]/node_modules/duplexer/index.js [jiti] [native]
[email protected]/node_modules/esbuild/lib/main.js [jiti] [native]
[email protected]/node_modules/esbuild/lib/main.js [jiti] [native]
[email protected]/node_modules/escape-string-regexp/index.js [jiti] [transpile esm module]
[email protected]/node_modules/estree-walker/dist/umd/estree-walker.js [jiti] [native]
[email protected]/node_modules/estree-walker/dist/umd/estree-walker.js [jiti] [native]
[email protected]/node_modules/estree-walker/src/async.js [jiti] [transpile esm module]
[email protected]/node_modules/estree-walker/src/index.js [jiti] [transpile esm module]
[email protected]/node_modules/estree-walker/src/sync.js [jiti] [transpile esm module]
[email protected]/node_modules/estree-walker/src/walker.js [jiti] [transpile esm module]
[email protected]/node_modules/estree-walker/src/walker.js [jiti] [transpile esm module]
[email protected]/node_modules/etag/index.js [jiti] [native]
[email protected]/node_modules/etag/index.js [jiti] [native]
[email protected]/node_modules/fast-glob/out/index.js [jiti] [native]
[email protected]/node_modules/fast-glob/out/index.js [jiti] [native]
[email protected]/node_modules/fast-glob/out/index.js [jiti] [native]
[email protected]/node_modules/fast-glob/out/index.js [jiti] [native]
[email protected]/node_modules/fast-glob/out/index.js [jiti] [native]
[email protected]/node_modules/fast-glob/out/index.js [jiti] [native]
[email protected]/node_modules/fast-glob/out/index.js [jiti] [native]
[email protected]/node_modules/fast-glob/out/index.js [jiti] [native]
[email protected]/node_modules/fast-glob/out/index.js [jiti] [native]
[email protected]/node_modules/fast-glob/out/index.js [jiti] [native]
[email protected]/node_modules/fast-glob/out/index.js [jiti] [native]
[email protected]/node_modules/fast-glob/out/index.js [jiti] [native]
[email protected]/node_modules/fast-glob/out/index.js [jiti] [native]
[email protected]/node_modules/fast-glob/out/index.js [jiti] [native]
[email protected]/node_modules/fast-glob/out/index.js [jiti] [native]
[email protected]/node_modules/fast-glob/out/index.js [jiti] [native]
[email protected]/node_modules/fast-glob/out/index.js [jiti] [native]
[email protected]/node_modules/fast-glob/out/index.js [jiti] [native]
[email protected]/node_modules/fs-extra/lib/index.js [jiti] [native]
[email protected]/node_modules/fs-extra/lib/index.js [jiti] [native]
[email protected]/node_modules/fs-extra/lib/index.js [jiti] [native]
[email protected]/node_modules/fs-memo/dist/index.js [jiti] [native]
[email protected]/node_modules/fs-memo/dist/index.js [jiti] [native]
[email protected]/node_modules/get-port-please/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/get-port-please/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/glob/glob.js [jiti] [native]
[email protected]/node_modules/glob/glob.js [jiti] [native]
[email protected]/node_modules/globby/ignore.js [jiti] [transpile esm module]
[email protected]/node_modules/globby/ignore.js [jiti] [transpile esm module]
[email protected]/node_modules/globby/ignore.js [jiti] [transpile esm module]
[email protected]/node_modules/globby/ignore.js [jiti] [transpile esm module]
[email protected]/node_modules/globby/index.js [jiti] [transpile esm module]
[email protected]/node_modules/globby/index.js [jiti] [transpile esm module]
[email protected]/node_modules/globby/index.js [jiti] [transpile esm module]
[email protected]/node_modules/globby/index.js [jiti] [transpile esm module]
[email protected]/node_modules/globby/utilities.js [jiti] [transpile esm module]
[email protected]/node_modules/globby/utilities.js [jiti] [transpile esm module]
[email protected]/node_modules/globby/utilities.js [jiti] [transpile esm module]
[email protected]/node_modules/globby/utilities.js [jiti] [transpile esm module]
[email protected]/node_modules/globby/utilities.js [jiti] [transpile esm module]
[email protected]/node_modules/globby/utilities.js [jiti] [transpile esm module]
[email protected]/node_modules/globby/utilities.js [jiti] [transpile esm module]
[email protected]/node_modules/globby/utilities.js [jiti] [transpile esm module]
[email protected]/node_modules/gzip-size/index.js [jiti] [transpile esm module]
[email protected]/node_modules/gzip-size/index.js [jiti] [transpile esm module]
[email protected]/node_modules/h3/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/h3/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/h3/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/hash-sum/hash-sum.js [jiti] [native]
[email protected]/node_modules/hookable/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/hookable/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/hookable/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/http-proxy/index.js [jiti] [native]
[email protected]/node_modules/http-proxy/index.js [jiti] [native]
[email protected]/node_modules/http-shutdown/index.js [jiti] [native]
[email protected]/node_modules/http-shutdown/index.js [jiti] [native]
[email protected]/node_modules/ignore/index.js [jiti] [native]
[email protected]/node_modules/ignore/index.js [jiti] [native]
[email protected]/node_modules/ignore/index.js [jiti] [native]
[email protected]/node_modules/ignore/index.js [jiti] [native]
[email protected]/node_modules/ignore/index.js [jiti] [native]
[email protected]/node_modules/is-builtin-module/index.js [jiti] [native]
[email protected]/node_modules/is-builtin-module/index.js [jiti] [native]
[email protected]/node_modules/is-module/index.js [jiti] [native]
[email protected]/node_modules/is-module/index.js [jiti] [native]
[email protected]/node_modules/is-reference/dist/is-reference.js [jiti] [native]
[email protected]/node_modules/is-reference/dist/is-reference.js [jiti] [native]
[email protected]/node_modules/jiti/lib/index.js [jiti] [native]
[email protected]/node_modules/jiti/lib/index.js [jiti] [native]
[email protected]/node_modules/jiti/lib/index.js [jiti] [native]
[email protected]/node_modules/jiti/lib/index.js [jiti] [native]
[email protected]/node_modules/jiti/lib/index.js [jiti] [native]
[email protected]/node_modules/jiti/lib/index.js [jiti] [native]
[email protected]/node_modules/jiti/lib/index.js [jiti] [native]
[email protected]/node_modules/klona/full/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/klona/full/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/knitwork/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/knitwork/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/knitwork/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/knitwork/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/listhen/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/listhen/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/local-pkg/index.cjs [jiti] [native]
[email protected]/node_modules/local-pkg/index.cjs [jiti] [native]
[email protected]/node_modules/local-pkg/index.cjs [jiti] [native]
[email protected]/node_modules/local-pkg/index.cjs [jiti] [native]
[email protected]/node_modules/local-pkg/index.cjs [jiti] [native]
[email protected]/node_modules/local-pkg/index.cjs [jiti] [native]
[email protected]/node_modules/local-pkg/index.cjs [jiti] [native]
[email protected]/node_modules/local-pkg/index.cjs [jiti] [native]
[email protected]/node_modules/local-pkg/index.cjs [jiti] [native]
[email protected]/node_modules/local-pkg/index.cjs [jiti] [native]
[email protected]/node_modules/lodash.template/index.js [jiti] [native]
[email protected]/node_modules/magic-string/dist/magic-string.cjs.js [jiti] [native]
[email protected]/node_modules/magic-string/dist/magic-string.cjs.js [jiti] [native]
[email protected]/node_modules/magic-string/dist/magic-string.es.mjs [jiti] [transpile esm module]
[email protected]/node_modules/magic-string/dist/magic-string.es.mjs [jiti] [transpile esm module]
[email protected]/node_modules/magic-string/dist/magic-string.es.mjs [jiti] [transpile esm module]
[email protected]/node_modules/magic-string/dist/magic-string.es.mjs [jiti] [transpile esm module]
[email protected]/node_modules/magic-string/dist/magic-string.es.mjs [jiti] [transpile esm module]
[email protected]/node_modules/magic-string/dist/magic-string.es.mjs [jiti] [transpile esm module]
[email protected]/node_modules/magic-string/dist/magic-string.es.mjs [jiti] [transpile esm module]
[email protected]/node_modules/magic-string/dist/magic-string.es.mjs [jiti] [transpile esm module]
[email protected]/node_modules/magic-string/dist/magic-string.es.mjs [jiti] [transpile esm module]
[email protected]/node_modules/magic-string/dist/magic-string.es.mjs [jiti] [transpile esm module]
[email protected]/node_modules/magic-string/dist/magic-string.es.mjs [jiti] [transpile esm module]
[email protected]/node_modules/magic-string/dist/magic-string.es.mjs [jiti] [transpile esm module]
[email protected]/node_modules/magic-string/dist/magic-string.es.mjs [jiti] [transpile esm module]
[email protected]/node_modules/magic-string/dist/magic-string.es.mjs [jiti] [transpile esm module]
[email protected]/node_modules/magic-string/dist/magic-string.es.mjs [jiti] [transpile esm module]
[email protected]/node_modules/magic-string/dist/magic-string.es.mjs [jiti] [transpile esm module]
[email protected]/node_modules/magic-string/dist/magic-string.es.mjs [jiti] [transpile esm module]
[email protected]/node_modules/merge2/index.js [jiti] [native]
[email protected]/node_modules/merge2/index.js [jiti] [native]
[email protected]/node_modules/merge2/index.js [jiti] [native]
[email protected]/node_modules/merge2/index.js [jiti] [native]
[email protected]/node_modules/mime/index.js [jiti] [native]
[email protected]/node_modules/mime/index.js [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/mlly/dist/index.cjs [jiti] [native]
[email protected]/node_modules/nitropack-edge/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/nitropack-edge/dist/shared/nitro.ce47800e.mjs [jiti] [transpile esm module]
[email protected]/node_modules/nuxt3/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/ohash/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/ohash/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/ohash/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pathe/dist/utils.mjs [jiti] [transpile esm module]
[email protected]/node_modules/perfect-debounce/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/perfect-debounce/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/perfect-debounce/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pkg-types/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pkg-types/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/pkg-types/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/postcss-import-resolver/index.js [jiti] [native]
[email protected][email protected]/node_modules/postcss-import/index.js [jiti] [native]
[email protected][email protected]/node_modules/postcss-url/src/index.js [jiti] [native]
[email protected]/node_modules/pretty-bytes/index.js [jiti] [transpile esm module]
[email protected]/node_modules/pretty-bytes/index.js [jiti] [transpile esm module]
[email protected]/node_modules/radix3/dist/index.cjs [jiti] [native]
[email protected]/node_modules/radix3/dist/index.cjs [jiti] [native]
[email protected]/node_modules/radix3/dist/index.cjs [jiti] [native]
[email protected]/node_modules/rc9/dist/index.cjs [jiti] [native]
[email protected]/node_modules/rc9/dist/index.cjs [jiti] [native]
[email protected]/node_modules/rc9/dist/index.cjs [jiti] [native]
[email protected]/node_modules/resolve/index.js [jiti] [native]
[email protected]/node_modules/resolve/index.js [jiti] [native]
[email protected][email protected]/node_modules/rollup-plugin-terser/rollup-plugin-terser.js [jiti] [native]
[email protected][email protected]/node_modules/rollup-plugin-terser/rollup-plugin-terser.js [jiti] [native]
[email protected][email protected]/node_modules/rollup-plugin-visualizer/dist/plugin/index.js [jiti] [native]
[email protected][email protected]/node_modules/rollup-plugin-visualizer/dist/plugin/index.js [jiti] [native]
[email protected]/node_modules/rollup/dist/rollup.js [jiti] [native]
[email protected]/node_modules/rollup/dist/rollup.js [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/scule/dist/index.cjs [jiti] [native]
[email protected]/node_modules/semver/functions/satisfies.js [jiti] [native]
[email protected]/node_modules/semver/index.js [jiti] [native]
[email protected]/node_modules/semver/index.js [jiti] [native]
[email protected]/node_modules/serve-placeholder/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/serve-placeholder/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/serve-static/index.js [jiti] [native]
[email protected]/node_modules/serve-static/index.js [jiti] [native]
[email protected]/node_modules/slash/index.js [jiti] [transpile esm module]
[email protected]/node_modules/slash/index.js [jiti] [transpile esm module]
[email protected]/node_modules/slash/index.js [jiti] [transpile esm module]
[email protected]/node_modules/slash/index.js [jiti] [transpile esm module]
[email protected]/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js [jiti] [native]
[email protected]/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js [jiti] [native]
[email protected]/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js [jiti] [native]
[email protected]/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js [jiti] [native]
[email protected]/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js [jiti] [native]
[email protected]/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js [jiti] [native]
[email protected]/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js [jiti] [native]
[email protected]/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js [jiti] [native]
[email protected]/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js [jiti] [native]
[email protected]/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js [jiti] [native]
[email protected]/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js [jiti] [native]
[email protected]/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js [jiti] [native]
[email protected]/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js [jiti] [native]
[email protected]/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js [jiti] [native]
[email protected]/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js [jiti] [native]
[email protected]/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js [jiti] [native]
[email protected]/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js [jiti] [native]
[email protected]/node_modules/std-env/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/std-env/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/std-env/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/strip-literal/dist/index.cjs [jiti] [native]
[email protected]/node_modules/strip-literal/dist/index.cjs [jiti] [native]
[email protected]/node_modules/strip-literal/dist/index.cjs [jiti] [native]
[email protected]/node_modules/strip-literal/dist/index.cjs [jiti] [native]
[email protected]/node_modules/strip-literal/dist/index.cjs [jiti] [native]
[email protected]/node_modules/strip-literal/dist/index.cjs [jiti] [native]
[email protected]/node_modules/strip-literal/dist/index.cjs [jiti] [native]
[email protected]/node_modules/strip-literal/dist/index.cjs [jiti] [native]
[email protected]/node_modules/strip-literal/dist/index.cjs [jiti] [native]
[email protected]/node_modules/strip-literal/dist/index.cjs [jiti] [native]
[email protected]/node_modules/strip-literal/dist/index.cjs [jiti] [native]
[email protected]/node_modules/strip-literal/dist/index.cjs [jiti] [native]
[email protected]/node_modules/strip-literal/dist/index.cjs [jiti] [native]
[email protected]/node_modules/strip-literal/dist/index.cjs [jiti] [native]
[email protected]/node_modules/strip-literal/dist/index.cjs [jiti] [native]
[email protected]/node_modules/strip-literal/dist/index.cjs [jiti] [native]
[email protected]/node_modules/ufo/dist/index.cjs [jiti] [native]
[email protected]/node_modules/ufo/dist/index.cjs [jiti] [native]
[email protected]/node_modules/ufo/dist/index.cjs [jiti] [native]
[email protected]/node_modules/ufo/dist/index.cjs [jiti] [native]
[email protected]/node_modules/ufo/dist/index.cjs [jiti] [native]
[email protected]/node_modules/ufo/dist/index.cjs [jiti] [native]
[email protected]/node_modules/ufo/dist/index.cjs [jiti] [native]
[email protected]/node_modules/ufo/dist/index.cjs [jiti] [native]
[email protected]/node_modules/ufo/dist/index.cjs [jiti] [native]
[email protected]/node_modules/unctx/dist/index.cjs [jiti] [native]
[email protected]/node_modules/unctx/dist/transform.mjs [jiti] [transpile esm module]
[email protected]/node_modules/unenv/dist/index.cjs [jiti] [native]
[email protected]/node_modules/unenv/dist/index.cjs [jiti] [native]
[email protected]_uu2p2v3owefbwsafzxfcsbbrxa/node_modules/unimport/dist/chunks/context.mjs [jiti] [transpile esm module]
[email protected]_uu2p2v3owefbwsafzxfcsbbrxa/node_modules/unimport/dist/chunks/context.mjs [jiti] [transpile esm module]
[email protected]_uu2p2v3owefbwsafzxfcsbbrxa/node_modules/unimport/dist/chunks/context.mjs [jiti] [transpile esm module]
[email protected]_uu2p2v3owefbwsafzxfcsbbrxa/node_modules/unimport/dist/chunks/context.mjs [jiti] [transpile esm module]
[email protected]_uu2p2v3owefbwsafzxfcsbbrxa/node_modules/unimport/dist/chunks/vue-template.mjs [jiti] [transpile esm module]
[email protected]_uu2p2v3owefbwsafzxfcsbbrxa/node_modules/unimport/dist/chunks/vue-template.mjs [jiti] [transpile esm module]
[email protected]_uu2p2v3owefbwsafzxfcsbbrxa/node_modules/unimport/dist/chunks/vue-template.mjs [jiti] [transpile esm module]
[email protected]_uu2p2v3owefbwsafzxfcsbbrxa/node_modules/unimport/dist/chunks/vue-template.mjs [jiti] [transpile esm module]
[email protected]_uu2p2v3owefbwsafzxfcsbbrxa/node_modules/unimport/dist/chunks/vue-template.mjs [jiti] [transpile esm module]
[email protected]_uu2p2v3owefbwsafzxfcsbbrxa/node_modules/unimport/dist/chunks/vue-template.mjs [jiti] [transpile esm module]
[email protected]_uu2p2v3owefbwsafzxfcsbbrxa/node_modules/unimport/dist/chunks/vue-template.mjs [jiti] [transpile esm module]
[email protected]_uu2p2v3owefbwsafzxfcsbbrxa/node_modules/unimport/dist/chunks/vue-template.mjs [jiti] [transpile esm module]
[email protected]_uu2p2v3owefbwsafzxfcsbbrxa/node_modules/unimport/dist/index.mjs [jiti] [transpile esm module]
[email protected]_uu2p2v3owefbwsafzxfcsbbrxa/node_modules/unimport/dist/index.mjs [jiti] [transpile esm module]
[email protected]_uu2p2v3owefbwsafzxfcsbbrxa/node_modules/unimport/dist/unplugin.mjs [jiti] [transpile esm module]
[email protected]_uu2p2v3owefbwsafzxfcsbbrxa/node_modules/unimport/dist/unplugin.mjs [jiti] [transpile esm module]
[email protected]/node_modules/unimport/dist/chunks/context.mjs [jiti] [transpile esm module]
[email protected]/node_modules/unimport/dist/chunks/vue-template.mjs [jiti] [transpile esm module]
[email protected]/node_modules/unimport/dist/chunks/vue-template.mjs [jiti] [transpile esm module]
[email protected]/node_modules/unimport/dist/index.mjs [jiti] [transpile esm module]
[email protected]_uu2p2v3owefbwsafzxfcsbbrxa/node_modules/unplugin/dist/index.mjs [jiti] [transpile esm module]
[email protected]_uu2p2v3owefbwsafzxfcsbbrxa/node_modules/unplugin/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/unplugin/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/unstorage/dist/chunks/_utils.mjs [jiti] [transpile esm module]
[email protected]/node_modules/unstorage/dist/chunks/_utils.mjs [jiti] [transpile esm module]
[email protected]/node_modules/unstorage/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/unstorage/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/untyped/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/untyped/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/untyped/dist/index.mjs [jiti] [transpile esm module]
[email protected]/node_modules/untyped/dist/shared/untyped.c53e415b.mjs [jiti] [transpile esm module]
[email protected]/node_modules/untyped/dist/shared/untyped.c53e415b.mjs [jiti] [transpile esm module]
[email protected]/node_modules/untyped/dist/shared/untyped.c53e415b.mjs [jiti] [transpile esm module]
[email protected]/node_modules/webpack-sources/lib/index.js [jiti] [native]
[email protected]/node_modules/webpack-sources/lib/index.js [jiti] [native]
[email protected]/node_modules/webpack-sources/lib/index.js [jiti] [native]
[email protected]/node_modules/webpack-virtual-modules/lib/index.js [jiti] [native]
[email protected]/node_modules/webpack-virtual-modules/lib/index.js [jiti] [native]
[email protected]/node_modules/webpack-virtual-modules/lib/index.js [jiti] [native]
@pi0
Copy link
Member

pi0 commented Sep 5, 2022

I don't think it largely affects performance as disk cache is being used (and native items are usiy require cache still)

@danielroe
Copy link
Member Author

danielroe commented Sep 5, 2022

I think disk cache is also switched off.

https://github.com/unjs/c12/blob/7ee26588806a369929428a32467425a2b4b821c8/src/loader.ts#L167

@danielroe
Copy link
Member Author

danielroe commented Sep 5, 2022

A quick test showed that enabling require cache for a fresh new nuxt project changed load time of nuxt.config.ts from ~5.9s to ~2.8s. This is the difference within a single call to jiti('/some/nuxt.config'). Subsequent calls were on the order of 50ms of course but that's neither here nor there; we can't cache the results of the config file. So, the kind of sync cache I'm talking about would effectively save 3s on each call. When you have a project with multiple config files (like a theme) that can mean taking 5s instead of 10s. Etc.

@pi0
Copy link
Member

pi0 commented Sep 6, 2022

I think disk cache is also switched off.

Let me double check but seems by bad disabling disk cache for c12 by default.

pi0 added a commit to unjs/c12 that referenced this issue Sep 6, 2022
@pi0
Copy link
Member

pi0 commented Sep 6, 2022

Issue should be resolved with next version of c12 by enabling disk cache, latest version of jiti by not transpilinig typescript (and custom option to extend) and nuxt.config issue nuxt/nuxt#14821.

I like the idea of having an in memory cache but if disk cache works properly and we do not transpile unnecessary ids, this is probably not necessary and have it's own drawbacks as cache is isolated per instance. Closing issue for now but let's revise it later if really there is something we can only fix in jiti level by introducing new caching mechanism.

Thanks for making issue btw it was good initiative.

@pi0 pi0 closed this as completed Sep 6, 2022
@danielroe
Copy link
Member Author

Update - config file loading for first file is now approx 788.944ms for me. 👍

BaybyPig0329 added a commit to BaybyPig0329/c12 that referenced this issue Apr 21, 2024
esbodelat7p added a commit to esbodelat7p/c12 that referenced this issue Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants