[ui] switch back from yarn pnp as it's a huge hassle
parent
37a0b1ca20
commit
706ccf859e
|
@ -1,3 +1,5 @@
|
|||
node_modules
|
||||
|
||||
/public/build/
|
||||
/public/vendor/
|
||||
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
nodeLinker: node-modules
|
||||
|
||||
yarnPath: .yarn/releases/yarn-3.1.0.cjs
|
||||
|
|
|
@ -11,10 +11,6 @@ import typescript from "@rollup/plugin-typescript";
|
|||
import css from "rollup-plugin-css-only";
|
||||
import dev from "rollup-plugin-dev";
|
||||
|
||||
import pnpapi from "pnpapi";
|
||||
import { PosixFS, ZipOpenFS } from "@yarnpkg/fslib";
|
||||
import libzip from "@yarnpkg/libzip";
|
||||
|
||||
const production = !process.env.ROLLUP_WATCH;
|
||||
|
||||
export default {
|
||||
|
@ -33,16 +29,6 @@ export default {
|
|||
svelte({
|
||||
preprocess: sveltePreprocess({
|
||||
sourceMap: !production,
|
||||
// https://github.com/sveltejs/svelte-preprocess/issues/283#issuecomment-748480431
|
||||
scss: {
|
||||
importer: (url, prev, done) => {
|
||||
const zipOpenFs = new ZipOpenFS({ libzip: libzip.getLibzipSync() });
|
||||
const crossFs = new PosixFS(zipOpenFs);
|
||||
const res = pnpapi.resolveRequest(url, __dirname + "/");
|
||||
const file = crossFs.readFileSync(res);
|
||||
done({ contents: file.toString() });
|
||||
},
|
||||
},
|
||||
}),
|
||||
compilerOptions: {
|
||||
// enable run-time checks when not in production
|
||||
|
|
Loading…
Reference in New Issue