Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A lot of files are created during project build #3

Closed
n-skriabin opened this issue Jan 25, 2021 · 5 comments
Closed

A lot of files are created during project build #3

n-skriabin opened this issue Jan 25, 2021 · 5 comments

Comments

@n-skriabin
Copy link

After adding this package to the project, a lot of files are created during build. (npm run build)
Screenshot_2
As you can see, each of these files is responsible for a separate topic, mode, etc. for the ace editor component.
Screenshot_3
How do I make all these files part of the assembly? In my situation, I don't need lazy loading of these modules. Thank you.

@CarterLi
Copy link
Owner

Well yes.
These files are generated by ace-builds/webpack-resolver which is necessary for dynamic mode/theme loading support. I was considering removing it, but it's a breaking change.

@n-skriabin
Copy link
Author

@CarterLi Thank you very much!!! It works! Just great! The only thing is that the "on-the-fly" validation has disappeared. To enable validation, should I also import a package?
Screenshot_4

For example, this is how it looks.
Screenshot_5

@CarterLi
Copy link
Owner

It relies on javascript-worker.

Worker support is disabled by default, you may enable it with :options="{ useWorker: true }"

To import the worker file, see: https://github.com/ajaxorg/ace-builds/blob/a4103cb0a672a4fec9a16fc344f3116b51d6bcda/webpack-resolver.js#L240

@n-skriabin
Copy link
Author

@CarterLi Thank you!!! I fixed it this way.

    import ace from 'ace-builds';
    ace.config.set(
        "basePath", 
        "https://cdn.jsdelivr.net/npm/ace-builds@" + require('ace-builds').version + "/src-noconflict/")

seijikohara added a commit to seijikohara/web-dev-tools-vue3 that referenced this issue Jun 27, 2021
@rahulkumarsingh73690
Copy link

vue3-ace-editor.js:1160 Unable to infer path to ace from script src, use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes or with webpack use ace/webpack-resolver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants