diff --git a/example/src/main.js b/example/src/main.js index b3f1325..7c9a4f9 100644 --- a/example/src/main.js +++ b/example/src/main.js @@ -1,9 +1,11 @@ import Vue from 'vue' import VueCompositionAPI, { createApp } from '@vue/composition-api' +import VueI18n from "vue-i18n" import { createI18n } from 'vue-i18n-composable' import App from './App.vue' Vue.use(VueCompositionAPI) +Vue.use(VueI18n) const i18n = createI18n({ locale: 'ja', diff --git a/package.json b/package.json index 172b02c..4fdc208 100644 --- a/package.json +++ b/package.json @@ -45,8 +45,8 @@ "yorkie": "^2.0.0" }, "exports": { - "require": "./dist/index.js", - "import": "./dist/index.mjs" + "require": "./dist/index.cjs", + "import": "./dist/index.js" }, "files": [ "dist" @@ -81,8 +81,9 @@ "secretlint" ] }, - "main": "dist/index.js", - "module": "dist/index.mjs", + "type": "module", + "main": "dist/index.cjs", + "module": "dist/index.js", "peerDependencies": { "@vue/composition-api": ">= 1.0.0-beta.1", "vue": ">=2.5 <3",