vue3-sfc-loader
vue3-sfc-loader copied to clipboard
Single File Component loader for Vue2 and Vue3. Load .vue files directly from your HTML. No node.js environment, no build step.
https://github.com/FranckFreiburger/vue3-sfc-loader/blob/80f10f9fd82d7dde6c8681d23d36e9ac3ab9a654/docs/faq.md?plain=1#L122 👆 This line, calling `createCJSModule`, the first parameter should be `path` or something, should not `type`. 
eg: https://stackblitz.com/edit/vitejs-vite-41edbw?file=dist%2Fxxx-lib.js
Hi, Using http-vue-loader since 3 years, it works at best and i'm migrating to vue2-sfc-loader. But surprisingly : - http-vue-loader v1.4.2 : 6Ko (min) - vue2-sfc-loader v0.8.4 : 2248Ko (min)...
When I use import dayjs from "dayjs", the dayjs I get is not the default export, but the whole module. Dayjs has been put into modulecache
I enjoy using sfc-loader instead of a traditional bundling step for vue. I even use it in production. I do feel slightly guilty due to the package size though. it's...
Updating the main, modules, and types fields in package.json. This makes the ESM version work with NodeJS 14+ mjs files. There may be something else happening with the commonjs version...
``` ReferenceError: self is not defined at Object. (/Users/user/Sites/my-new-site/node_modules/vue3-sfc-loader/dist/vue3-sfc-loader.js:9:218) at Module._compile (node:internal/modules/cjs/loader:1097:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10) at Module.load (node:internal/modules/cjs/loader:975:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:999:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.741 (/Users/user/Sites/my-new-site/public/js/ssr.js:1:18216)...
I'm trying to run the SFC loader on the out of the box application generated by vue. This app has an App.vue that references a component HelloWorld.vue that does this:...
Can you make an example using router-link and i18n svp in a view : ``` View Charts ```