stable
Clone or download
Read-only
This allow the library to be tree-shaken. Since Webpack is not capable of building ES2015 module for libraries [0], it is replaced by Vite [1]. The only inconvenient of this switch is that Vite does not have a build watch mode at the moment [2] so we simulate it using nodemon [3]. Note that we still also deliver the lib as UMD because Jest needs it. Part of request #19287: Make internal libs "tree-shakeable" [0] https://github.com/webpack/webpack/issues/2933 [1] https://vitejs.dev [2] https://github.com/vitejs/vite/issues/1434 [3] https://nodemon.io/ Change-Id: I8341202dec6124c9704e630cbf348d5e02bb6746
Modified Files
Name | ||||
---|---|---|---|---|
M | .eslintrc.js | +6 | −0 | Go to diff View file |
M | package-lock.json | +2151 | −79 | Go to diff View file |
M | package.json | +4 | −0 | Go to diff View file |
M | src/scripts/lib/vue-breadcrumb-privacy/.gitignore | +2 | −1 | Go to diff View file |
M | src/scripts/lib/vue-breadcrumb-privacy/package.json | +11 | −4 | Go to diff View file |
M | src/scripts/lib/vue-breadcrumb-privacy/tsconfig.json | +5 | −3 | Go to diff View file |
A | src/scripts/lib/vue-breadcrumb-privacy/vite.config.ts | +23 | −0 | Go to diff View file |
D | src/scripts/lib/vue-breadcrumb-privacy/webpack.common.js | +0 | −56 | Go to diff View file |
D | src/scripts/lib/vue-breadcrumb-privacy/webpack.dev.js | +0 | −23 | Go to diff View file |
D | src/scripts/lib/vue-breadcrumb-privacy/webpack.prod.js | +0 | −23 | Go to diff View file |
M | src/scripts/switch-to/src/components/Body/Projects/ProjectLink.vue | +2 | −2 | Go to diff View file |
M | tests/jest/jest.base.config.js | +1 | −0 | Go to diff View file |