зеркало из https://github.com/nextcloud/text.git
vite: use vite-plugin-commonjs for vue-material-design-icons
Signed-off-by: Max <max@nextcloud.com>
This commit is contained in:
Родитель
eed9f8bbd4
Коммит
9a8f7613e7
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
25
package.json
25
package.json
|
@ -92,34 +92,32 @@
|
||||||
"npm": "^7.0.0"
|
"npm": "^7.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nextcloud/axios": "^1.10.0",
|
|
||||||
"@nextcloud/dialogs": "^3.1.2",
|
|
||||||
"@nextcloud/event-bus": "^2.1.1",
|
|
||||||
"@nextcloud/initial-state": "^1.2.1",
|
|
||||||
"@nextcloud/l10n": "^1.6.0",
|
|
||||||
"@nextcloud/moment": "^1.2.1",
|
|
||||||
"@nextcloud/vue": "^5.3.1",
|
|
||||||
"debounce": "^1.2.1",
|
|
||||||
"core-js": "^3.22.7",
|
|
||||||
"escape-html": "^1.0.3",
|
|
||||||
"highlight.js": "^10.7.2",
|
|
||||||
"lowlight": "^1.20.0",
|
|
||||||
"@babel/core": "^7.17.12",
|
"@babel/core": "^7.17.12",
|
||||||
"@babel/eslint-parser": "^7.18.2",
|
"@babel/eslint-parser": "^7.18.2",
|
||||||
"@cypress/browserify-preprocessor": "^3.0.2",
|
"@cypress/browserify-preprocessor": "^3.0.2",
|
||||||
"@cypress/webpack-preprocessor": "^5.12.0",
|
"@cypress/webpack-preprocessor": "^5.12.0",
|
||||||
|
"@nextcloud/axios": "^1.10.0",
|
||||||
"@nextcloud/babel-config": "^1.0.0",
|
"@nextcloud/babel-config": "^1.0.0",
|
||||||
"@nextcloud/browserslist-config": "^2.2.0",
|
"@nextcloud/browserslist-config": "^2.2.0",
|
||||||
|
"@nextcloud/dialogs": "^3.1.2",
|
||||||
"@nextcloud/eslint-config": "^8.0.0",
|
"@nextcloud/eslint-config": "^8.0.0",
|
||||||
"@nextcloud/eslint-plugin": "^2.0.0",
|
"@nextcloud/eslint-plugin": "^2.0.0",
|
||||||
|
"@nextcloud/event-bus": "^2.1.1",
|
||||||
|
"@nextcloud/initial-state": "^1.2.1",
|
||||||
|
"@nextcloud/l10n": "^1.6.0",
|
||||||
|
"@nextcloud/moment": "^1.2.1",
|
||||||
"@nextcloud/stylelint-config": "^2.1.2",
|
"@nextcloud/stylelint-config": "^2.1.2",
|
||||||
|
"@nextcloud/vue": "^5.3.1",
|
||||||
"@nextcloud/webpack-vue-config": "^5.1.0",
|
"@nextcloud/webpack-vue-config": "^5.1.0",
|
||||||
"@vue/test-utils": "^1.3.0",
|
"@vue/test-utils": "^1.3.0",
|
||||||
"@vue/vue2-jest": "^27.0.0",
|
"@vue/vue2-jest": "^27.0.0",
|
||||||
"babel-loader": "^8.2.5",
|
"babel-loader": "^8.2.5",
|
||||||
|
"core-js": "^3.22.7",
|
||||||
"css-loader": "^6.7.1",
|
"css-loader": "^6.7.1",
|
||||||
"cypress": "^10.0.3",
|
"cypress": "^10.0.3",
|
||||||
"cypress-file-upload": "^5.0.8",
|
"cypress-file-upload": "^5.0.8",
|
||||||
|
"debounce": "^1.2.1",
|
||||||
|
"escape-html": "^1.0.3",
|
||||||
"eslint": "^8.17.0",
|
"eslint": "^8.17.0",
|
||||||
"eslint-config-standard": "^17.0.0",
|
"eslint-config-standard": "^17.0.0",
|
||||||
"eslint-plugin-cypress": "^2.12.1",
|
"eslint-plugin-cypress": "^2.12.1",
|
||||||
|
@ -128,9 +126,11 @@
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"eslint-plugin-promise": "^6.0.0",
|
"eslint-plugin-promise": "^6.0.0",
|
||||||
"eslint-plugin-vue": "^8.7.1",
|
"eslint-plugin-vue": "^8.7.1",
|
||||||
|
"highlight.js": "^10.7.2",
|
||||||
"jest": "^27.5.1",
|
"jest": "^27.5.1",
|
||||||
"jest-raw-loader": "^1.0.1",
|
"jest-raw-loader": "^1.0.1",
|
||||||
"jest-serializer-vue": "^2.0.2",
|
"jest-serializer-vue": "^2.0.2",
|
||||||
|
"lowlight": "^1.20.0",
|
||||||
"mitt": "^3.0.0",
|
"mitt": "^3.0.0",
|
||||||
"node-polyfill-webpack-plugin": "^1.1.4",
|
"node-polyfill-webpack-plugin": "^1.1.4",
|
||||||
"regenerator-runtime": "^0.13.9",
|
"regenerator-runtime": "^0.13.9",
|
||||||
|
@ -138,6 +138,7 @@
|
||||||
"sass-loader": "^12.6.0",
|
"sass-loader": "^12.6.0",
|
||||||
"style-loader": "^3.3.1",
|
"style-loader": "^3.3.1",
|
||||||
"vite": "^2.9.9",
|
"vite": "^2.9.9",
|
||||||
|
"vite-plugin-commonjs": "^0.4.7",
|
||||||
"vite-plugin-vue2": "^2.0.0",
|
"vite-plugin-vue2": "^2.0.0",
|
||||||
"vue-loader": "^15.9.8",
|
"vue-loader": "^15.9.8",
|
||||||
"vue-template-compiler": "^2.6.14",
|
"vue-template-compiler": "^2.6.14",
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
import { resolve } from 'path'
|
import { resolve } from 'path'
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import { createVuePlugin } from 'vite-plugin-vue2'
|
import { createVuePlugin } from 'vite-plugin-vue2'
|
||||||
|
import commonjs from 'vite-plugin-commonjs'
|
||||||
import { dependencies } from './package.json'
|
import { dependencies } from './package.json'
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [createVuePlugin()],
|
plugins: [createVuePlugin(), commonjs],
|
||||||
build: {
|
build: {
|
||||||
lib: {
|
lib: {
|
||||||
entry: resolve(__dirname, 'src/package.js'),
|
entry: resolve(__dirname, 'src/package.js'),
|
||||||
|
|
Загрузка…
Ссылка в новой задаче