This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Support Source Maps #8
Comments
TBH I have not observed that in |
The warning pops up as soon as sourcemaps are enabled. Here is my vite.config.ts import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import ckeditor5 from "@ckeditor/vite-plugin-ckeditor5";
import { createRequire } from "node:module";
const require = createRequire(import.meta.url);
// https://vitejs.dev/config/
export default defineConfig({
build: {
// The issue happens when the sourcemap is enabled (true | 'hidden' | 'inline').
sourcemap: true, // <- 🐞
},
// TODO: Remove this fix once the following issue is resolved:
// https://github.com/ckeditor/ckeditor5/issues/13922
optimizeDeps: {
esbuildOptions: {
legalComments: "none",
},
},
plugins: [
vue(),
ckeditor5({ theme: require.resolve("@ckeditor/ckeditor5-theme-lark") }),
],
}); package.json {
"name": "ck-sourcemap-issue",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"preview": "vite preview"
},
"dependencies": {
"@ckeditor/ckeditor5-alignment": "^37.1.0",
"@ckeditor/ckeditor5-autoformat": "^37.1.0",
"@ckeditor/ckeditor5-basic-styles": "^37.1.0",
"@ckeditor/ckeditor5-block-quote": "^37.1.0",
"@ckeditor/ckeditor5-ckbox": "^37.1.0",
"@ckeditor/ckeditor5-cloud-services": "^37.1.0",
"@ckeditor/ckeditor5-comments": "^37.1.0",
"@ckeditor/ckeditor5-editor-classic": "^37.1.0",
"@ckeditor/ckeditor5-essentials": "^37.1.0",
"@ckeditor/ckeditor5-font": "^37.1.0",
"@ckeditor/ckeditor5-heading": "^37.1.0",
"@ckeditor/ckeditor5-highlight": "^37.1.0",
"@ckeditor/ckeditor5-image": "^37.1.0",
"@ckeditor/ckeditor5-link": "^37.1.0",
"@ckeditor/ckeditor5-list": "^37.1.0",
"@ckeditor/ckeditor5-media-embed": "^37.1.0",
"@ckeditor/ckeditor5-paragraph": "^37.1.0",
"@ckeditor/ckeditor5-paste-from-office": "^37.1.0",
"@ckeditor/ckeditor5-real-time-collaboration": "^37.1.0",
"@ckeditor/ckeditor5-remove-format": "^37.1.0",
"@ckeditor/ckeditor5-table": "^37.1.0",
"@ckeditor/ckeditor5-theme-lark": "^37.1.0",
"@ckeditor/ckeditor5-track-changes": "^37.1.0",
"@ckeditor/ckeditor5-vue": "^5.1.0",
"@types/node": "^20.2.3",
"ckbox": "^1.5.0",
"vue": "^3.2.47"
},
"devDependencies": {
"@ckeditor/vite-plugin-ckeditor5": "^0.1.1",
"@vitejs/plugin-vue": "^4.1.0",
"typescript": "^5.0.2",
"vite": "^4.3.2",
"vue-tsc": "^1.4.2"
}
} |
@LukaszGudel is this something you could tweak? |
Short reproduction instructionsTo reproduce this issue just add the following to your ...
+ build: {
+ sourcemap: true
+ },
... |
LukaszGudel
added a commit
that referenced
this issue
May 31, 2023
Fix: Using sourcemap option in Vite no longer results in warnings. Closes: #8.
The issue with warnings was fixed in #9 and will be available in the next release of the plugin. |
@LukaszGudel Thanks a lot for fixing this issue 🙏. Is there already a release date? It would be awesome if we could use these changes. |
LukaszGudel
added
bug
Something isn't working
squad:qa
Issue to be handled by the QA team.
labels
Jun 1, 2023
@HaNdTriX We just released version |
Thanks a lot! 🙏 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Using this plugin with vite, logs the following warning when running
vite build
More info
The text was updated successfully, but these errors were encountered: