Skip to content
This repository was archived by the owner on Jul 4, 2021. It is now read-only.

feat: custom block pre compilation #20

Merged
merged 2 commits into from
Dec 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/member-delimiter-style': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off'
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off'
}
}
19 changes: 19 additions & 0 deletions examples/composition/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "composition",
"private": true,
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vite build"
},
"dependencies": {
"vue": "^3.0.4",
"vue-i18n": "^9.0.0-beta.15"
},
"devDependencies": {
"vite": "1.0.0-rc.13",
"@intlify/vite-plugin-vue-i18n": "link:../..",
"typescript": "^4.1.2",
"@vue/compiler-sfc": "^3.0.4"
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { UserConfig } from 'vite'
import i18n from '../../lib/index'
import { transformI18n } from '@intlify/vite-plugin-vue-i18n'

const config: UserConfig = {
vueCustomBlockTransforms: {
i18n
i18n: transformI18n()
}
}

Expand Down
2,207 changes: 2,207 additions & 0 deletions examples/composition/yarn.lock

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions examples/global/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "global",
"private": true,
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vite build"
},
"dependencies": {
"vue": "^3.0.4",
"vue-i18n": "^9.0.0-beta.15"
},
"devDependencies": {
"vite": "1.0.0-rc.13",
"@intlify/vite-plugin-vue-i18n": "link:../..",
"typescript": "^4.1.2",
"@vue/compiler-sfc": "^3.0.4"
}
}
4 changes: 2 additions & 2 deletions examples/global/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { UserConfig } from 'vite'
import i18n from '../../lib/index'
import { transformI18n } from '@intlify/vite-plugin-vue-i18n'

const config: UserConfig = {
vueCustomBlockTransforms: {
i18n
i18n: transformI18n()
}
}

Expand Down
Loading