├── .gitattributes ├── packages ├── playground │ ├── css │ │ ├── pkg-dep │ │ │ ├── index.js │ │ │ ├── _index.scss │ │ │ └── package.json │ │ ├── glob-dep.css │ │ ├── dep.css │ │ ├── async.css │ │ ├── css-dep │ │ │ ├── index.styl │ │ │ ├── index.css │ │ │ ├── index.js │ │ │ ├── index.scss │ │ │ └── package.json │ │ ├── glob-dep │ │ │ ├── bar.css │ │ │ └── foo.css │ │ ├── composed.module.less │ │ ├── mod.module.css │ │ ├── mod.module.scss │ │ ├── async-treeshaken.css │ │ ├── composed.module.css │ │ ├── composed.module.scss │ │ ├── linked-at-import.css │ │ ├── nested │ │ │ ├── _partial.scss │ │ │ ├── icon.png │ │ │ ├── nested.styl │ │ │ ├── _index.scss │ │ │ └── nested.less │ │ ├── minify.css │ │ ├── imported-at-import.css │ │ ├── postcss-caching │ │ │ ├── blue-app │ │ │ │ ├── imported.css │ │ │ │ ├── main.js │ │ │ │ ├── package.json │ │ │ │ ├── index.html │ │ │ │ └── postcss.config.js │ │ │ └── green-app │ │ │ │ ├── imported.css │ │ │ │ ├── main.js │ │ │ │ ├── package.json │ │ │ │ ├── index.html │ │ │ │ └── postcss.config.js │ │ ├── inlined.css │ │ ├── ok.png │ │ ├── less.less │ │ ├── options │ │ │ ├── absolute-import.styl │ │ │ └── relative-import.styl │ │ ├── linked.css │ │ ├── async.js │ │ ├── stylus.styl │ │ ├── async-treeshaken.js │ │ ├── composes-path-resolving.module.css │ │ ├── sass.scss │ │ ├── package.json │ │ └── imported.css │ ├── dynamic-import │ │ ├── mxd.json │ │ ├── mxd.js │ │ ├── nested │ │ │ └── shared.js │ │ ├── qux.js │ │ ├── views │ │ │ ├── bar.js │ │ │ ├── baz.js │ │ │ └── foo.js │ │ ├── css │ │ │ └── index.css │ │ ├── package.json │ │ └── index.html │ ├── resolve │ │ ├── dir-with-ext.js │ │ │ └── empty │ │ ├── dir.js │ │ ├── exports-path │ │ │ ├── cjs.js │ │ │ ├── deep.js │ │ │ ├── main.js │ │ │ ├── dir │ │ │ │ └── dir.js │ │ │ └── package.json │ │ ├── browser-field │ │ │ ├── out │ │ │ │ ├── cjs.node.js │ │ │ │ └── esm.browser.js │ │ │ ├── no-ext.js │ │ │ ├── not-browser.js │ │ │ ├── multiple.dot.path.js │ │ │ ├── no-ext-index │ │ │ │ └── index.js │ │ │ └── relative.js │ │ ├── config-dep.js │ │ ├── dir │ │ │ └── index.js │ │ ├── custom-condition │ │ │ ├── index.js │ │ │ ├── index.custom.js │ │ │ └── package.json │ │ ├── custom-ext.es │ │ ├── custom-main-field │ │ │ ├── index.js │ │ │ ├── index.custom.js │ │ │ └── package.json │ │ ├── exact-extension │ │ │ ├── file.js.js │ │ │ └── file.js │ │ ├── exports-env │ │ │ ├── browser.js │ │ │ ├── fallback.umd.js │ │ │ ├── browser.mjs │ │ │ ├── browser.prod.mjs │ │ │ └── package.json │ │ ├── inline-package │ │ │ ├── inline.js │ │ │ └── package.json │ │ ├── dir-with-ext │ │ │ └── index.js │ │ ├── ts-extension │ │ │ ├── index.ts │ │ │ └── hello.ts │ │ ├── util │ │ │ ├── index.js │ │ │ └── bar.util.js │ │ └── utf8-bom │ │ │ └── main.js │ ├── assets │ │ ├── foo.js │ │ ├── static │ │ │ ├── raw.css │ │ │ ├── raw.js │ │ │ └── icon.png │ │ ├── テスト-測試-white space.js │ │ ├── nested │ │ │ ├── asset.png │ │ │ ├── icon.png │ │ │ └── テスト-測試-white space.png │ │ ├── fonts │ │ │ ├── Inter-Italic.woff │ │ │ └── Inter-Italic.woff2 │ │ ├── css │ │ │ ├── nested │ │ │ │ └── at-imported-css-url.css │ │ │ ├── fonts.css │ │ │ └── icons.css │ │ ├── package.json │ │ └── vite.config.js │ ├── fs-serve │ │ ├── root │ │ │ ├── src │ │ │ │ ├── .env │ │ │ │ └── safe.txt │ │ │ ├── unsafe.txt │ │ │ └── vite.config.js │ │ ├── nested │ │ │ └── foo.js │ │ ├── safe.json │ │ ├── unsafe.json │ │ ├── entry.js │ │ └── package.json │ ├── ssr-deps │ │ ├── message │ │ ├── primitive-export │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── forwarded-export │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── read-file-content │ │ │ ├── package.json │ │ │ └── index.js │ │ ├── ts-transpiled-exports │ │ │ ├── package.json │ │ │ └── index.js │ │ ├── object-assigned-exports │ │ │ ├── package.json │ │ │ └── index.js │ │ ├── node-addon │ │ │ ├── index.js │ │ │ ├── binding.gyp │ │ │ ├── README.md │ │ │ ├── package.json │ │ │ └── main.cpp │ │ ├── index.html │ │ └── vite.config.js │ ├── cli │ │ ├── index.js │ │ ├── index.html │ │ ├── vite.config.js │ │ └── package.json │ ├── css-codesplit │ │ ├── other.js │ │ ├── main.css │ │ ├── style.css │ │ ├── index.html │ │ ├── main.js │ │ ├── package.json │ │ └── vite.config.js │ ├── hmr │ │ ├── hmrNestedDep.js │ │ ├── customFile.js │ │ ├── index.html │ │ ├── package.json │ │ ├── hmrDep.js │ │ └── vite.config.js │ ├── html │ │ ├── common.css │ │ ├── main.css │ │ ├── shared.js │ │ ├── nested │ │ │ ├── nested.css │ │ │ ├── nested.js │ │ │ └── index.html │ │ ├── unicode-path │ │ │ └── 中文-にほんご-한글-🌕🌖🌗 │ │ │ │ └── index.html │ │ ├── inline │ │ │ ├── dep1.js │ │ │ ├── dep2.js │ │ │ ├── dep3.js │ │ │ ├── shared.js │ │ │ ├── unique.js │ │ │ ├── shared-1.html │ │ │ ├── shared-2.html │ │ │ ├── unique.html │ │ │ ├── common.js │ │ │ └── module-graph.dot │ │ ├── main.js │ │ ├── zeroJS.html │ │ ├── index.html │ │ ├── noBody.html │ │ ├── noHead.html │ │ ├── scriptMixed.html │ │ ├── scriptAsync.html │ │ ├── package.json │ │ └── foo.html │ ├── css-codesplit-cjs │ │ ├── other.js │ │ ├── main.css │ │ ├── style.css │ │ ├── index.html │ │ ├── main.js │ │ ├── package.json │ │ └── vite.config.js │ ├── glob-import │ │ ├── dir │ │ │ ├── foo.js │ │ │ ├── baz.json │ │ │ ├── index.js │ │ │ └── nested │ │ │ │ └── bar.js │ │ └── package.json │ ├── lib │ │ ├── src │ │ │ ├── message.js │ │ │ ├── main.js │ │ │ └── main2.js │ │ ├── index.html │ │ ├── package.json │ │ └── vite.dyimport.config.js │ ├── preserve-symlinks │ │ ├── moduleA │ │ │ ├── linked.js │ │ │ ├── src │ │ │ │ ├── data.js │ │ │ │ └── index.js │ │ │ └── package.json │ │ ├── src │ │ │ └── main.js │ │ ├── package.json │ │ ├── __tests__ │ │ │ └── preserve-symlinks.spec.ts │ │ └── index.html │ ├── alias │ │ ├── dir │ │ │ ├── test.css │ │ │ ├── test.js │ │ │ ├── module │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ └── from-script-src.js │ │ ├── test.js │ │ └── package.json │ ├── json │ │ ├── test.json │ │ ├── public │ │ │ └── public.json │ │ └── package.json │ ├── multiple-entrypoints │ │ ├── dynamic-a.js │ │ ├── dynamic-b.js │ │ ├── reference.scss │ │ ├── reference.js │ │ ├── index.html │ │ ├── entrypoints │ │ │ ├── a24.js │ │ │ ├── a23.js │ │ │ ├── a22.js │ │ │ ├── a21.js │ │ │ ├── a20.js │ │ │ ├── a19.js │ │ │ ├── a18.js │ │ │ ├── a17.js │ │ │ ├── a16.js │ │ │ └── a15.js │ │ ├── index.js │ │ ├── package.json │ │ └── __tests__ │ │ │ └── multiple-entrypoints.spec.ts │ ├── optimize-deps │ │ ├── dep-linked │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── .hidden-dir │ │ │ └── foo.js │ │ ├── dep-linked-include │ │ │ ├── test.css │ │ │ ├── Test.vue │ │ │ ├── foo.js │ │ │ ├── package.json │ │ │ └── index.mjs │ │ ├── dep-cjs-compiled-from-cjs │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── nested-exclude │ │ │ ├── index.js │ │ │ ├── nested-include │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ └── package.json │ │ ├── dep-cjs-compiled-from-esm │ │ │ ├── package.json │ │ │ └── index.js │ │ ├── dep-esbuild-plugin-transform │ │ │ ├── index.js │ │ │ └── package.json │ │ └── glob │ │ │ └── foo.js │ ├── nested-deps │ │ ├── test-package-a │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── test-package-c │ │ │ ├── index-es.js │ │ │ ├── side.js │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── test-package-b │ │ │ ├── node_modules │ │ │ │ └── test-package-a │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── test-package-d │ │ │ ├── test-package-d-nested │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── test-package-e │ │ │ ├── index.js │ │ │ ├── test-package-e-excluded │ │ │ │ ├── package.json │ │ │ │ └── index.js │ │ │ ├── test-package-e-included │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ └── package.json │ │ ├── vite.config.js │ │ ├── package.json │ │ └── __tests__ │ │ │ └── nested-deps.spec.ts │ ├── ssr-vue │ │ ├── dep-import-type │ │ │ ├── deep │ │ │ │ └── index.d.ts │ │ │ └── package.json │ │ ├── src │ │ │ ├── components │ │ │ │ ├── foo.css │ │ │ │ ├── ImportType.vue │ │ │ │ └── Foo.jsx │ │ │ ├── assets │ │ │ │ ├── logo.png │ │ │ │ └── fonts │ │ │ │ │ ├── Inter-Italic.woff │ │ │ │ │ └── Inter-Italic.woff2 │ │ │ ├── entry-client.js │ │ │ ├── pages │ │ │ │ ├── External.vue │ │ │ │ ├── Store.vue │ │ │ │ └── About.vue │ │ │ └── main.js │ │ ├── example-external-component │ │ │ ├── ExampleExternalComponent.vue │ │ │ ├── index.js │ │ │ └── package.json │ │ └── index.html │ ├── vue-jsx │ │ ├── SrcImport.vue │ │ ├── index.html │ │ ├── OtherExt.tesx │ │ ├── SrcImport.jsx │ │ ├── Script.vue │ │ ├── Comp.tsx │ │ ├── vite.config.js │ │ ├── package.json │ │ └── main.jsx │ ├── backend-integration │ │ ├── frontend │ │ │ ├── styles │ │ │ │ ├── tailwind.css │ │ │ │ └── background.css │ │ │ ├── images │ │ │ │ └── logo.png │ │ │ └── entrypoints │ │ │ │ ├── main.ts │ │ │ │ └── global.css │ │ ├── postcss.config.js │ │ ├── references.css │ │ ├── tailwind.config.js │ │ └── package.json │ ├── env │ │ ├── .env.development │ │ ├── .env.production │ │ ├── .env │ │ ├── vite.config.js │ │ └── package.json │ ├── resolve-linked │ │ ├── dep.js │ │ ├── package.json │ │ └── src │ │ │ └── index.js │ ├── vue │ │ ├── src-import │ │ │ ├── style.css │ │ │ ├── SrcImport.vue │ │ │ ├── template.html │ │ │ └── script.ts │ │ ├── Node.vue │ │ ├── assets │ │ │ └── asset.png │ │ ├── public │ │ │ └── icon.png │ │ ├── setup-import-template │ │ │ ├── template.html │ │ │ └── SetupImportTemplate.vue │ │ ├── Slotted.vue │ │ ├── RefTransform.vue │ │ ├── Syntax.vue │ │ ├── ScanDep.vue │ │ ├── index.html │ │ ├── Hmr.vue │ │ ├── AsyncComponent.vue │ │ ├── CustomBlockPlugin.ts │ │ ├── CustomElement.ce.vue │ │ ├── CssModules.vue │ │ ├── package.json │ │ └── vite.config.ts │ ├── cli-module │ │ ├── index.js │ │ ├── index.html │ │ ├── vite.config.js │ │ └── package.json │ ├── optimize-missing-deps │ │ ├── multi-entry-dep │ │ │ ├── index.browser.js │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── main.js │ │ ├── missing-dep │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── index.html │ │ ├── package.json │ │ └── __test__ │ │ │ └── optimize-missing-deps.spec.ts │ ├── ssr-react │ │ ├── src │ │ │ ├── circular-dep-init │ │ │ │ ├── module-a.js │ │ │ │ ├── circular-dep-init.js │ │ │ │ ├── README.md │ │ │ │ └── module-b.js │ │ │ ├── forked-deadlock │ │ │ │ ├── stuck-module.js │ │ │ │ ├── fuse-stuck-bridge-module.js │ │ │ │ ├── middle-module.js │ │ │ │ ├── deadlock-fuse-module.js │ │ │ │ └── common-module.js │ │ │ ├── pages │ │ │ │ ├── Env.jsx │ │ │ │ ├── About.jsx │ │ │ │ └── Home.jsx │ │ │ ├── add.js │ │ │ ├── multiply.js │ │ │ ├── entry-client.jsx │ │ │ └── entry-server.jsx │ │ ├── vite.config.js │ │ └── index.html │ ├── tsconfig-json-load-error │ │ ├── src │ │ │ └── main.ts │ │ ├── has-error │ │ │ ├── main.ts │ │ │ └── tsconfig.json │ │ ├── package.json │ │ ├── index.html │ │ └── tsconfig.json │ ├── react │ │ ├── components │ │ │ └── Dummy.jsx │ │ ├── index.html │ │ ├── vite.config.ts │ │ └── package.json │ ├── tailwind │ │ ├── index.css │ │ ├── public │ │ │ └── favicon.ico │ │ ├── src │ │ │ ├── assets │ │ │ │ └── logo.png │ │ │ ├── main.js │ │ │ ├── components │ │ │ │ └── HelloWorld.vue │ │ │ ├── App.vue │ │ │ └── router.ts │ │ ├── postcss.config.js │ │ ├── tailwind.config.js │ │ ├── index.html │ │ ├── vite.config.ts │ │ └── package.json │ ├── wasm │ │ ├── light.wasm │ │ ├── heavy.wasm │ │ ├── package.json │ │ └── __tests__ │ │ │ └── wasm.spec.ts │ ├── worker │ │ ├── workerImport.js │ │ ├── my-worker.ts │ │ ├── possible-ts-output-worker.mjs │ │ ├── package.json │ │ └── my-shared-worker.ts │ ├── file-delete-restore │ │ ├── Child.jsx │ │ ├── App.jsx │ │ ├── index.html │ │ ├── vite.config.js │ │ └── package.json │ ├── tsconfig-json │ │ ├── src │ │ │ ├── not-used-type.ts │ │ │ └── main.ts │ │ ├── nested │ │ │ ├── not-used-type.ts │ │ │ └── main.ts │ │ ├── nested-with-extends │ │ │ ├── not-used-type.ts │ │ │ ├── tsconfig.json │ │ │ └── main.ts │ │ ├── package.json │ │ ├── index.html │ │ └── tsconfig.json │ ├── preload │ │ ├── src │ │ │ ├── App.vue │ │ │ └── components │ │ │ │ ├── About.vue │ │ │ │ ├── Home.vue │ │ │ │ └── Hello.vue │ │ ├── index.html │ │ ├── vite.config.js │ │ ├── package.json │ │ └── router.js │ ├── ssr-pug │ │ ├── src │ │ │ └── app.js │ │ ├── index.pug │ │ └── package.json │ ├── ssr-html │ │ ├── src │ │ │ └── app.js │ │ ├── index.html │ │ └── package.json │ ├── legacy │ │ ├── async.js │ │ ├── index.html │ │ ├── entry-server.js │ │ ├── vite.config-custom-filename.js │ │ ├── immutable-chunk.js │ │ └── package.json │ ├── package.json │ ├── extensions │ │ ├── vite.config.js │ │ ├── index.html │ │ ├── __tests__ │ │ │ └── extensions.spec.ts │ │ └── package.json │ ├── react-emotion │ │ ├── index.html │ │ └── vite.config.ts │ ├── shims.d.ts │ ├── define │ │ ├── package.json │ │ └── vite.config.js │ ├── data-uri │ │ ├── package.json │ │ ├── index.html │ │ └── __tests__ │ │ │ └── data-uri.spec.ts │ ├── tsconfig.json │ └── ssr-webworker │ │ ├── __tests__ │ │ └── ssr-webworker.spec.ts │ │ ├── package.json │ │ ├── src │ │ └── entry-worker.jsx │ │ └── vite.config.js ├── vite │ ├── src │ │ ├── node │ │ │ ├── __tests__ │ │ │ │ └── packages │ │ │ │ │ ├── noname │ │ │ │ │ └── package.json │ │ │ │ │ └── name │ │ │ │ │ └── package.json │ │ │ ├── server │ │ │ │ └── __tests__ │ │ │ │ │ └── fixtures │ │ │ │ │ ├── pnpm │ │ │ │ │ ├── pnpm-workspace.yaml │ │ │ │ │ ├── package.json │ │ │ │ │ └── nested │ │ │ │ │ │ └── package.json │ │ │ │ │ ├── none │ │ │ │ │ └── nested │ │ │ │ │ │ └── package.json │ │ │ │ │ └── yarn │ │ │ │ │ ├── nested │ │ │ │ │ └── package.json │ │ │ │ │ └── package.json │ │ │ └── tsconfig.json │ │ ├── client │ │ │ └── tsconfig.json │ │ └── browser │ │ │ ├── tsconfig.json │ │ │ └── server │ │ │ └── index.ts │ ├── types │ │ ├── package.json │ │ ├── customEvent.d.ts │ │ └── anymatch.d.ts │ └── tsconfig.base.json ├── create-vite │ ├── template-preact-ts │ │ ├── src │ │ │ ├── preact.d.ts │ │ │ ├── vite-env.d.ts │ │ │ ├── main.tsx │ │ │ ├── app.tsx │ │ │ └── index.css │ │ ├── _gitignore │ │ ├── vite.config.ts │ │ ├── package.json │ │ └── index.html │ ├── template-lit-ts │ │ ├── src │ │ │ └── vite-env.d.ts │ │ ├── _gitignore │ │ ├── vite.config.ts │ │ ├── index.html │ │ └── package.json │ ├── template-react-ts │ │ ├── src │ │ │ ├── vite-env.d.ts │ │ │ ├── main.tsx │ │ │ └── index.css │ │ ├── _gitignore │ │ ├── vite.config.ts │ │ ├── index.html │ │ └── package.json │ ├── template-vanilla-ts │ │ ├── src │ │ │ ├── vite-env.d.ts │ │ │ ├── style.css │ │ │ └── main.ts │ │ ├── _gitignore │ │ ├── package.json │ │ ├── index.html │ │ └── tsconfig.json │ ├── template-lit │ │ ├── _gitignore │ │ ├── vite.config.js │ │ ├── package.json │ │ └── index.html │ ├── template-react │ │ ├── _gitignore │ │ ├── vite.config.js │ │ ├── src │ │ │ ├── main.jsx │ │ │ └── index.css │ │ ├── package.json │ │ └── index.html │ ├── template-svelte-ts │ │ ├── _gitignore │ │ ├── .vscode │ │ │ └── extensions.json │ │ ├── src │ │ │ ├── vite-env.d.ts │ │ │ ├── assets │ │ │ │ └── svelte.png │ │ │ └── main.ts │ │ ├── public │ │ │ └── favicon.ico │ │ ├── vite.config.js │ │ ├── svelte.config.js │ │ └── index.html │ ├── template-svelte │ │ ├── _gitignore │ │ ├── .vscode │ │ │ └── extensions.json │ │ ├── src │ │ │ ├── vite-env.d.ts │ │ │ ├── assets │ │ │ │ └── svelte.png │ │ │ └── main.js │ │ ├── public │ │ │ └── favicon.ico │ │ ├── vite.config.js │ │ ├── package.json │ │ └── index.html │ ├── template-vanilla │ │ ├── _gitignore │ │ ├── main.js │ │ ├── style.css │ │ ├── package.json │ │ └── index.html │ ├── template-vue │ │ ├── _gitignore │ │ ├── .vscode │ │ │ └── extensions.json │ │ ├── src │ │ │ ├── main.js │ │ │ └── assets │ │ │ │ └── logo.png │ │ ├── public │ │ │ └── favicon.ico │ │ ├── vite.config.js │ │ ├── package.json │ │ ├── index.html │ │ └── README.md │ ├── template-preact │ │ ├── _gitignore │ │ ├── src │ │ │ ├── main.jsx │ │ │ ├── app.jsx │ │ │ └── index.css │ │ ├── vite.config.js │ │ ├── package.json │ │ └── index.html │ └── template-vue-ts │ │ ├── _gitignore │ │ ├── .vscode │ │ └── extensions.json │ │ ├── src │ │ ├── main.ts │ │ ├── assets │ │ │ └── logo.png │ │ └── env.d.ts │ │ ├── public │ │ └── favicon.ico │ │ ├── vite.config.ts │ │ ├── index.html │ │ ├── tsconfig.json │ │ └── package.json ├── create-app │ └── README.md ├── plugin-react │ ├── src │ │ └── babel.d.ts │ └── tsconfig.json ├── plugin-vue │ └── src │ │ └── helper.ts └── plugin-vue-jsx │ └── index.d.ts ├── pnpm-workspace.yaml ├── docs ├── images │ ├── esm.png │ ├── bundler.png │ ├── graph.png │ ├── vite-plugin-inspect.png │ └── vercel-configuration.png └── public │ ├── vite.mp3 │ ├── finclip.png │ ├── vuejobs.png │ ├── divriots.png │ ├── _headers │ └── voice.svg ├── .github ├── pr-workflow.png ├── issue-workflow.png ├── semantic.yml ├── ISSUE_TEMPLATE │ └── config.yml └── workflows │ └── issue-close-require.yml ├── .editorconfig ├── netlify.toml ├── .gitignore ├── scripts └── jestGlobalTeardown.cjs ├── .prettierignore └── .prettierrc.json /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | -------------------------------------------------------------------------------- /packages/playground/css/pkg-dep/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/playground/css/glob-dep.css: -------------------------------------------------------------------------------- 1 | @test; 2 | -------------------------------------------------------------------------------- /packages/playground/dynamic-import/mxd.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/playground/resolve/dir-with-ext.js/empty: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/playground/assets/foo.js: -------------------------------------------------------------------------------- 1 | console.log('hi') 2 | -------------------------------------------------------------------------------- /packages/playground/css/dep.css: -------------------------------------------------------------------------------- 1 | @import 'css-dep'; 2 | -------------------------------------------------------------------------------- /packages/playground/fs-serve/root/src/.env: -------------------------------------------------------------------------------- 1 | KEY=unsafe 2 | -------------------------------------------------------------------------------- /packages/playground/ssr-deps/message: -------------------------------------------------------------------------------- 1 | File Content! 2 | -------------------------------------------------------------------------------- /packages/playground/fs-serve/root/src/safe.txt: -------------------------------------------------------------------------------- 1 | KEY=safe 2 | -------------------------------------------------------------------------------- /packages/playground/fs-serve/root/unsafe.txt: -------------------------------------------------------------------------------- 1 | KEY=unsafe 2 | -------------------------------------------------------------------------------- /packages/playground/cli/index.js: -------------------------------------------------------------------------------- 1 | console.log('vite cli works!') 2 | -------------------------------------------------------------------------------- /packages/playground/css-codesplit/other.js: -------------------------------------------------------------------------------- 1 | import './style.css' 2 | -------------------------------------------------------------------------------- /packages/playground/hmr/hmrNestedDep.js: -------------------------------------------------------------------------------- 1 | export const foo = 1 2 | -------------------------------------------------------------------------------- /packages/playground/html/common.css: -------------------------------------------------------------------------------- 1 | p { 2 | color: grey; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/html/main.css: -------------------------------------------------------------------------------- 1 | h1 { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/html/shared.js: -------------------------------------------------------------------------------- 1 | export const msg = 'shared' 2 | -------------------------------------------------------------------------------- /packages/vite/src/node/__tests__/packages/noname/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/playground/css-codesplit-cjs/other.js: -------------------------------------------------------------------------------- 1 | import './style.css' 2 | -------------------------------------------------------------------------------- /packages/playground/css/async.css: -------------------------------------------------------------------------------- 1 | .async { 2 | color: teal; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/fs-serve/nested/foo.js: -------------------------------------------------------------------------------- 1 | export const msg = 'foo' 2 | -------------------------------------------------------------------------------- /packages/playground/fs-serve/safe.json: -------------------------------------------------------------------------------- 1 | { 2 | "msg": "safe" 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/glob-import/dir/foo.js: -------------------------------------------------------------------------------- 1 | export const msg = 'foo' 2 | -------------------------------------------------------------------------------- /packages/playground/hmr/customFile.js: -------------------------------------------------------------------------------- 1 | export const msg = 'custom' 2 | -------------------------------------------------------------------------------- /packages/playground/lib/src/message.js: -------------------------------------------------------------------------------- 1 | export default 'hello vite' 2 | -------------------------------------------------------------------------------- /packages/playground/preserve-symlinks/moduleA/linked.js: -------------------------------------------------------------------------------- 1 | ./src/index.js -------------------------------------------------------------------------------- /packages/vite/src/node/server/__tests__/fixtures/pnpm/pnpm-workspace.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/playground/alias/dir/test.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: grey; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/css-codesplit/main.css: -------------------------------------------------------------------------------- 1 | h1 { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/css-codesplit/style.css: -------------------------------------------------------------------------------- 1 | h2 { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/css/css-dep/index.styl: -------------------------------------------------------------------------------- 1 | .css-dep-stylus 2 | color red 3 | -------------------------------------------------------------------------------- /packages/playground/dynamic-import/mxd.js: -------------------------------------------------------------------------------- 1 | export default function () {} 2 | -------------------------------------------------------------------------------- /packages/playground/dynamic-import/nested/shared.js: -------------------------------------------------------------------------------- 1 | export const n = 1 2 | -------------------------------------------------------------------------------- /packages/playground/dynamic-import/qux.js: -------------------------------------------------------------------------------- 1 | export const msg = 'Qux view' 2 | -------------------------------------------------------------------------------- /packages/playground/fs-serve/unsafe.json: -------------------------------------------------------------------------------- 1 | { 2 | "msg": "unsafe" 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/glob-import/dir/baz.json: -------------------------------------------------------------------------------- 1 | { 2 | "msg": "baz" 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/html/nested/nested.css: -------------------------------------------------------------------------------- 1 | h1 { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/json/test.json: -------------------------------------------------------------------------------- 1 | { 2 | "hello": "this is json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/multiple-entrypoints/dynamic-a.js: -------------------------------------------------------------------------------- 1 | import './reference' 2 | -------------------------------------------------------------------------------- /packages/playground/multiple-entrypoints/dynamic-b.js: -------------------------------------------------------------------------------- 1 | import './reference' 2 | -------------------------------------------------------------------------------- /packages/playground/resolve/dir.js: -------------------------------------------------------------------------------- 1 | export const file = '[success] dir.js' 2 | -------------------------------------------------------------------------------- /packages/playground/resolve/exports-path/cjs.js: -------------------------------------------------------------------------------- 1 | exports.msg = 'from cjs' 2 | -------------------------------------------------------------------------------- /packages/create-vite/template-preact-ts/src/preact.d.ts: -------------------------------------------------------------------------------- 1 | import JSX = preact.JSX 2 | -------------------------------------------------------------------------------- /packages/playground/assets/static/raw.css: -------------------------------------------------------------------------------- 1 | .raw-css { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/assets/テスト-測試-white space.js: -------------------------------------------------------------------------------- 1 | console.log('test unicode') 2 | -------------------------------------------------------------------------------- /packages/playground/css-codesplit-cjs/main.css: -------------------------------------------------------------------------------- 1 | h1 { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/css-codesplit-cjs/style.css: -------------------------------------------------------------------------------- 1 | h2 { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/css/css-dep/index.css: -------------------------------------------------------------------------------- 1 | .css-dep { 2 | color: purple; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/css/glob-dep/bar.css: -------------------------------------------------------------------------------- 1 | .dir-dep-2 { 2 | color: grey; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/css/glob-dep/foo.css: -------------------------------------------------------------------------------- 1 | .dir-dep { 2 | color: grey; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/dynamic-import/views/bar.js: -------------------------------------------------------------------------------- 1 | export const msg = 'Bar view' 2 | -------------------------------------------------------------------------------- /packages/playground/optimize-deps/dep-linked/index.js: -------------------------------------------------------------------------------- 1 | export * from 'lodash-es' 2 | -------------------------------------------------------------------------------- /packages/playground/resolve/browser-field/out/cjs.node.js: -------------------------------------------------------------------------------- 1 | export default 'fail' 2 | -------------------------------------------------------------------------------- /packages/playground/resolve/config-dep.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | a: 1 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/resolve/dir/index.js: -------------------------------------------------------------------------------- 1 | export const file = 'dir/index.js' 2 | -------------------------------------------------------------------------------- /packages/playground/alias/test.js: -------------------------------------------------------------------------------- 1 | export const msg = `[success] alias to fs path` 2 | -------------------------------------------------------------------------------- /packages/playground/css/composed.module.less: -------------------------------------------------------------------------------- 1 | .apply-color { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/css/css-dep/index.js: -------------------------------------------------------------------------------- 1 | throw new Error('should not be imported') 2 | -------------------------------------------------------------------------------- /packages/playground/css/mod.module.css: -------------------------------------------------------------------------------- 1 | .apply-color { 2 | color: turquoise; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/css/mod.module.scss: -------------------------------------------------------------------------------- 1 | .apply-color { 2 | color: orangered; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/css/pkg-dep/_index.scss: -------------------------------------------------------------------------------- 1 | .sass-dep { 2 | color: lavender; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/json/public/public.json: -------------------------------------------------------------------------------- 1 | { 2 | "hello": "this is json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/nested-deps/test-package-a/index.js: -------------------------------------------------------------------------------- 1 | export default 'A@2.0.0' 2 | -------------------------------------------------------------------------------- /packages/playground/resolve/custom-condition/index.js: -------------------------------------------------------------------------------- 1 | export const msg = '[fail]' 2 | -------------------------------------------------------------------------------- /packages/playground/resolve/custom-ext.es: -------------------------------------------------------------------------------- 1 | export const msg = `[success] custom ext` 2 | -------------------------------------------------------------------------------- /packages/playground/resolve/custom-main-field/index.js: -------------------------------------------------------------------------------- 1 | export const msg = '[fail]' 2 | -------------------------------------------------------------------------------- /packages/playground/ssr-vue/dep-import-type/deep/index.d.ts: -------------------------------------------------------------------------------- 1 | export interface Foo {} 2 | -------------------------------------------------------------------------------- /packages/playground/ssr-vue/src/components/foo.css: -------------------------------------------------------------------------------- 1 | .jsx { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/vue-jsx/SrcImport.vue: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- 1 | packages: 2 | - 'packages/*' 3 | - 'packages/playground/**' 4 | -------------------------------------------------------------------------------- /packages/playground/alias/dir/test.js: -------------------------------------------------------------------------------- 1 | export const msg = `[success] alias to directory` 2 | -------------------------------------------------------------------------------- /packages/playground/backend-integration/frontend/styles/tailwind.css: -------------------------------------------------------------------------------- 1 | @tailwind utilities; 2 | -------------------------------------------------------------------------------- /packages/playground/css/async-treeshaken.css: -------------------------------------------------------------------------------- 1 | .async-treeshaken { 2 | color: plum; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/css/composed.module.css: -------------------------------------------------------------------------------- 1 | .apply-color { 2 | color: turquoise; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/css/composed.module.scss: -------------------------------------------------------------------------------- 1 | .apply-color { 2 | color: orangered; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/css/css-dep/index.scss: -------------------------------------------------------------------------------- 1 | .css-dep-sass { 2 | color: orange; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/css/linked-at-import.css: -------------------------------------------------------------------------------- 1 | .linked-at-import { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/css/nested/_partial.scss: -------------------------------------------------------------------------------- 1 | .sass-partial { 2 | color: orchid; 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/env/.env.development: -------------------------------------------------------------------------------- 1 | VITE_EFFECTIVE_MODE_FILE_NAME=.env.development 2 | -------------------------------------------------------------------------------- /packages/playground/env/.env.production: -------------------------------------------------------------------------------- 1 | VITE_EFFECTIVE_MODE_FILE_NAME=.env.production 2 | -------------------------------------------------------------------------------- /packages/playground/html/unicode-path/中文-にほんご-한글-🌕🌖🌗/index.html: -------------------------------------------------------------------------------- 1 |
Child state 1
3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/html/inline/shared-1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /packages/playground/html/inline/shared-2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /packages/playground/html/inline/unique.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /packages/playground/nested-deps/test-package-c/index.js: -------------------------------------------------------------------------------- 1 | // this module should not be resolved 2 | export default 'C@1.0.0' 3 | -------------------------------------------------------------------------------- /packages/playground/resolve/ts-extension/hello.ts: -------------------------------------------------------------------------------- 1 | export const msg = '[success] use .js extension to import a ts module' 2 | -------------------------------------------------------------------------------- /packages/playground/resolve/util/index.js: -------------------------------------------------------------------------------- 1 | export function foo() { 2 | return '[success] resolve omitted /index.*' 3 | } 4 | -------------------------------------------------------------------------------- /packages/playground/wasm/heavy.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divriots/browser-vite/HEAD/packages/playground/wasm/heavy.wasm -------------------------------------------------------------------------------- /docs/images/vercel-configuration.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divriots/browser-vite/HEAD/docs/images/vercel-configuration.png -------------------------------------------------------------------------------- /packages/create-vite/template-svelte/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | ///Other Ext
6 | ) 7 | }) 8 | 9 | export default Default 10 | -------------------------------------------------------------------------------- /packages/create-vite/template-svelte-ts/vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite' 2 | import { svelte } from '@sveltejs/vite-plugin-svelte' 3 | 4 | // https://vitejs.dev/config/ 5 | export default defineConfig({ 6 | plugins: [svelte()] 7 | }) 8 | -------------------------------------------------------------------------------- /packages/create-vite/template-svelte/vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite' 2 | import { svelte } from '@sveltejs/vite-plugin-svelte' 3 | 4 | // https://vitejs.dev/config/ 5 | export default defineConfig({ 6 | plugins: [svelte()] 7 | }) 8 | -------------------------------------------------------------------------------- /packages/playground/ssr-deps/object-assigned-exports/index.js: -------------------------------------------------------------------------------- 1 | Object.defineProperty(exports, '__esModule', { value: true }) 2 | 3 | const obj = { 4 | hello() { 5 | return 'Hello World!' 6 | } 7 | } 8 | 9 | Object.assign(exports, obj) 10 | -------------------------------------------------------------------------------- /packages/playground/ssr-react/src/forked-deadlock/middle-module.js: -------------------------------------------------------------------------------- 1 | import { deadlockfuseModuleExport } from './deadlock-fuse-module' 2 | 3 | /** 4 | * module Y 5 | */ 6 | export function middleModuleExport() { 7 | void deadlockfuseModuleExport 8 | } 9 | -------------------------------------------------------------------------------- /packages/plugin-react/src/babel.d.ts: -------------------------------------------------------------------------------- 1 | declare module '@babel/plugin-transform-react-jsx' 2 | declare module '@babel/plugin-transform-react-jsx-self' 3 | declare module '@babel/plugin-transform-react-jsx-source' 4 | declare module 'react-refresh/babel.js' 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | dist 4 | dist-ssr 5 | TODOs.md 6 | *.log 7 | temp 8 | explorations 9 | .idea 10 | *.local 11 | /packages/vite/LICENSE 12 | *.cpuprofile 13 | /.vscode/ 14 | /packages/playground/ssr-deps/node-addon/build/ 15 | -------------------------------------------------------------------------------- /packages/playground/legacy/entry-server.js: -------------------------------------------------------------------------------- 1 | // This counts as 'server-side' rendering, yes? 2 | export async function render() { 3 | return /* html */ ` 4 |import type should be removed without side-effect
3 | 4 | 5 | 9 | -------------------------------------------------------------------------------- /packages/playground/tailwind/src/components/HelloWorld.vue: -------------------------------------------------------------------------------- 1 | 2 |{{ a?.b }}
4 | 5 | 6 | 15 | -------------------------------------------------------------------------------- /packages/create-vite/template-vanilla/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vite-starter", 3 | "version": "0.0.0", 4 | "scripts": { 5 | "dev": "vite", 6 | "build": "vite build", 7 | "preview": "vite preview" 8 | }, 9 | "devDependencies": { 10 | "vite": "^2.6.13" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /packages/playground/file-delete-restore/index.html: -------------------------------------------------------------------------------- 1 | 2 | 9 | -------------------------------------------------------------------------------- /packages/playground/tailwind/tailwind.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | mode: 'jit', 3 | purge: [__dirname + '/src/**/*.vue'], 4 | darkMode: false, // or 'media' or 'class' 5 | theme: { 6 | extend: {} 7 | }, 8 | variants: { 9 | extend: {} 10 | }, 11 | plugins: [] 12 | } 13 | -------------------------------------------------------------------------------- /packages/playground/vue/ScanDep.vue: -------------------------------------------------------------------------------- 1 | 2 |Imported css string:
5 | 6 | 7 |This should be blue
8 | 9 |This should be black
10 |Imported css string:
5 | 6 | 7 |This should be black
8 | 9 |This should be green
10 |Hello Vite + Preact!
8 |9 | 15 | Learn Preact 16 | 17 |
18 | > 19 | ) 20 | } 21 | -------------------------------------------------------------------------------- /packages/create-vite/template-preact/src/app.jsx: -------------------------------------------------------------------------------- 1 | import { Logo } from './logo' 2 | 3 | export function App(props) { 4 | return ( 5 | <> 6 |Hello Vite + Preact!
8 |9 | 15 | Learn Preact 16 | 17 |
18 | > 19 | ) 20 | } 21 | -------------------------------------------------------------------------------- /packages/playground/multiple-entrypoints/entrypoints/a17.js: -------------------------------------------------------------------------------- 1 | import a18 from './a18' 2 | import a19 from './a19' 3 | import a20 from './a20' 4 | import a21 from './a21' 5 | import a22 from './a22' 6 | import a23 from './a23' 7 | import a24 from './a24' 8 | 9 | export const that = () => import('./a16.js') 10 | 11 | export function other() { 12 | return a18() + a19() + a20() + a21() + a22() + a23() + a24() 13 | } 14 | 15 | export default function () { 16 | return 123 17 | } 18 | -------------------------------------------------------------------------------- /packages/playground/preload/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "test-preload", 3 | "private": true, 4 | "version": "0.0.0", 5 | "scripts": { 6 | "dev": "vite", 7 | "build": "vite build", 8 | "debug": "node --inspect-brk ../../vite/bin/vite", 9 | "preview": "vite preview" 10 | }, 11 | "dependencies": { 12 | "vue": "^3.2.23", 13 | "vue-router": "^4.0.0" 14 | }, 15 | "devDependencies": { 16 | "@vitejs/plugin-vue": "workspace:*" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /packages/playground/tailwind/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |Click the button then edit this message. The count should be preserved.
4 | 5 | 6 | 7 | 15 | 16 | 21 | -------------------------------------------------------------------------------- /packages/vite/src/node/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "include": ["./", "../../types"], 4 | "exclude": ["**/__tests__"], 5 | "compilerOptions": { 6 | // compile away optional-chaining-operator 7 | // node support table: https://node.green/#ES2020-features-optional-chaining-operator----- 8 | "target": "ES2019", 9 | "outDir": "../../dist/node", 10 | "module": "commonjs", 11 | "lib": ["ESNext"], 12 | "sourceMap": true 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /packages/playground/file-delete-restore/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "test-file-delete-restore", 3 | "private": true, 4 | "version": "0.0.0", 5 | "scripts": { 6 | "dev": "vite", 7 | "build": "vite build", 8 | "debug": "node --inspect-brk ../../vite/bin/vite", 9 | "preview": "vite preview" 10 | }, 11 | "dependencies": { 12 | "react": "^17.0.2", 13 | "react-dom": "^17.0.2" 14 | }, 15 | "devDependencies": { 16 | "@vitejs/plugin-react": "workspace:*" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /packages/playground/legacy/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "test-legacy", 3 | "private": true, 4 | "version": "0.0.0", 5 | "scripts": { 6 | "dev": "vite", 7 | "build": "vite build --debug legacy", 8 | "build:custom-filename": "vite --config ./vite.config-custom-filename.js build --debug legacy", 9 | "debug": "node --inspect-brk ../../vite/bin/vite", 10 | "preview": "vite preview" 11 | }, 12 | "devDependencies": { 13 | "@vitejs/plugin-legacy": "workspace:*" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /packages/playground/ssr-vue/src/main.js: -------------------------------------------------------------------------------- 1 | import App from './App.vue' 2 | import { createSSRApp } from 'vue' 3 | import { createRouter } from './router' 4 | 5 | // SSR requires a fresh app instance per request, therefore we export a function 6 | // that creates a fresh app instance. If using Vuex, we'd also be creating a 7 | // fresh store here. 8 | export function createApp() { 9 | const app = createSSRApp(App) 10 | const router = createRouter() 11 | app.use(router) 12 | return { app, router } 13 | } 14 | -------------------------------------------------------------------------------- /packages/playground/vue/AsyncComponent.vue: -------------------------------------------------------------------------------- 1 | 2 |Testing TLA and for await compatibility with esbuild
4 |ab == {{ test }}
5 | 6 | 7 | 16 | -------------------------------------------------------------------------------- /packages/playground/multiple-entrypoints/entrypoints/a16.js: -------------------------------------------------------------------------------- 1 | import a17 from './a17' 2 | import a18 from './a18' 3 | import a19 from './a19' 4 | import a20 from './a20' 5 | import a21 from './a21' 6 | import a22 from './a22' 7 | import a23 from './a23' 8 | import a24 from './a24' 9 | 10 | export const that = () => import('./a15.js') 11 | 12 | export function other() { 13 | return a17() + a18() + a19() + a20() + a21() + a22() + a23() + a24() 14 | } 15 | 16 | export default function () { 17 | return 123 18 | } 19 | -------------------------------------------------------------------------------- /packages/playground/assets/css/icons.css: -------------------------------------------------------------------------------- 1 | img { 2 | width: 32px; 3 | height: 32px; 4 | } 5 | 6 | .icon { 7 | display: inline-block; 8 | width: 32px; 9 | height: 32px; 10 | } 11 | 12 | .icon-clock { 13 | background: url(../nested/fragment-bg.svg#icon-clock-view) no-repeat; 14 | } 15 | 16 | .icon-heart { 17 | background: url(../nested/fragment-bg.svg#icon-heart-view) no-repeat; 18 | } 19 | 20 | .icon-arrow-right { 21 | background: url(../nested/fragment-bg.svg#icon-arrow-right-view) no-repeat; 22 | } 23 | -------------------------------------------------------------------------------- /packages/playground/css/imported.css: -------------------------------------------------------------------------------- 1 | @import './imported-at-import.css'; 2 | 3 | .imported { 4 | color: green; 5 | } 6 | 7 | pre { 8 | background-color: #eee; 9 | width: 500px; 10 | padding: 1em 1.5em; 11 | border-radius: 10px; 12 | } 13 | 14 | /* test postcss nesting */ 15 | .postcss { 16 | .nesting { 17 | color: pink; 18 | } 19 | } 20 | 21 | /* test url comma separation */ 22 | .url-separated { 23 | /* prettier-ignore */ 24 | background-image:url(images/cat.webp),url(images/dog.webp); 25 | } 26 | -------------------------------------------------------------------------------- /packages/playground/data-uri/__tests__/data-uri.spec.ts: -------------------------------------------------------------------------------- 1 | import { isBuild, findAssetFile } from '../../testUtils' 2 | 3 | test('plain', async () => { 4 | expect(await page.textContent('.plain')).toBe('hi') 5 | }) 6 | 7 | test('base64', async () => { 8 | expect(await page.textContent('.base64')).toBe('hi') 9 | }) 10 | 11 | if (isBuild) { 12 | test('should compile away the import for build', async () => { 13 | const file = findAssetFile('index') 14 | expect(file).not.toMatch('import') 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /packages/playground/ssr-vue/src/pages/About.vue: -------------------------------------------------------------------------------- 1 | 2 |This is child content
13 |This is child content
13 |