nuxt-monaco-editor 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.0.6](https://github.com/e-chan1007/nuxt-monaco-editor/compare/v1.0.5...v1.0.6) (2022-10-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* destination where monaco-editor is copied was wrong ([f3a839e](https://github.com/e-chan1007/nuxt-monaco-editor/commit/f3a839eab2a6602aa582d772e7a54d8573237f81))
|
|
11
|
+
|
|
5
12
|
### [1.0.5](https://github.com/e-chan1007/nuxt-monaco-editor/compare/v1.0.4...v1.0.5) (2022-10-26)
|
|
6
13
|
|
|
7
14
|
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -36,11 +36,11 @@ const module = defineNuxtModule({
|
|
|
36
36
|
nuxt.options.runtimeConfig.app.__MONACO_EDITOR_LOCALE__ = options.locale;
|
|
37
37
|
nuxt.options.runtimeConfig.app.__MONACO_EDITOR_LOCATION__ = monacoEditorLocation;
|
|
38
38
|
extendViteConfig(async (config) => {
|
|
39
|
-
const shouldAppendURLPrefix = await checkNuxtCompatibility({ nuxt: "^3.0.0-rc.12" })
|
|
39
|
+
const shouldAppendURLPrefix = await checkNuxtCompatibility({ nuxt: "^3.0.0-rc.12" });
|
|
40
40
|
const viteStaticCopyPlugin = viteStaticCopy({
|
|
41
41
|
targets: [{
|
|
42
42
|
src: require.resolve("monaco-editor/min/vs/loader.js").replace(/\\/g, "/").replace(/\/vs\/loader\.js$/, "/*"),
|
|
43
|
-
dest: (shouldAppendURLPrefix ? "__url/" : "") + monacoEditorLocation.slice(1)
|
|
43
|
+
dest: nuxt.options.dev ? (shouldAppendURLPrefix ? "__url/" : "") + monacoEditorLocation.slice(1) : options.dest
|
|
44
44
|
}]
|
|
45
45
|
});
|
|
46
46
|
config.plugins.push(...viteStaticCopyPlugin);
|