
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@nextindex/vue-gdpr
Advanced tools
npm install @nextindex/vue-gdpr --save
vue-gdpr
is internally using dynamic import()
statements to load the corrisponding langauge.json with the law text. As how webpack works, it will create vendor chunks because of the import()
. Which sounds generally good, because it reduces the bundle size. However, webpack can't properly resolve these imports later in the project where you are using this lib.
It will try to fetch the chunks based on the publicPath
which in most project will be simply /
. But the chunks are not automatically copied into it. So the loading of the chunks fails.
Currently the only workaround I've found is to publish the source files and let the user import the vue components from the source files. Which also means that bundling / transpiling needs to be done in user-land.
GitHub Issue: https://github.com/webpack/webpack/issues/11127
// THIS IS CURRENTLY NOT WORKING. SEE https://github.com/webpack/webpack/issues/11127
import { GDPRSidebar, GDPRContent } from '@nextindex/vue-gdpr'
Workaround
import GDPRSidebar from '@nextindex/vue-gdpr/src/components/GDPRSidebar.vue'
import GDPRContent from '@nextindex/vue-gdpr/src/components/GDPRContent.vue'
<GDPRSidebar />
<GDPRContent />
Prop | Type | Default Value | Description |
---|---|---|---|
lang | String | de | GDRP Language. Currently supported: de |
citations | Boolean | true | Show / Hide citations |
recitals | Boolean | true | Show / Hide recitals |
Prop | Type | Default Value | Description |
---|---|---|---|
lang | String | de | GDRP Language. Currently supported: de |
collapsible | Boolean | false | Enable/Disable Collapible sidebar items |
<GDPRSidebar>
<template v-slot:chapter="{ chapter }">
<h1>{{ chapter.title }}</h1>
</template>
</GDPRSidebar>
npm run serve
npm run build
npm run test:unit
npm run lint
FAQs
Render Components for GDPR Law
The npm package @nextindex/vue-gdpr receives a total of 1 weekly downloads. As such, @nextindex/vue-gdpr popularity was classified as not popular.
We found that @nextindex/vue-gdpr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.