Giter VIP home page Giter VIP logo

Comments (8)

jia000 avatar jia000 commented on September 2, 2024

vue3 does not not support ie11

from tmagic-editor.

yoohoolai avatar yoohoolai commented on September 2, 2024

测试用的是chrome浏览器

from tmagic-editor.

jia000 avatar jia000 commented on September 2, 2024

请提供详细的信息
浏览器版本,node版本,webpack或者vite版本,babel版本等

from tmagic-editor.

yoohoolai avatar yoohoolai commented on September 2, 2024

Chrome 版本 102.0.5005.63(正式版本) (64 位)、node v16.12.0、vite 2.9.9、babel 7.18.2

from tmagic-editor.

yoohoolai avatar yoohoolai commented on September 2, 2024

vite.config.js配置信息:
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import legacy from '@vitejs/plugin-legacy';
import vueJsx from '@vitejs/plugin-vue-jsx';
export default defineConfig({
define: {
global:{}
},
plugins: [
vue(),
vueJsx(),
legacy({
targets: ['defaults', 'not IE 11'],
additionalLegacyPolyfills:['regenerator-runtime/runtime']
})
],
build: {
sourcemap: true,
minify: false,

rollupOptions: {
  input: {
    page: './page.html',
    playground: './playground.html',
    components: './src/comp-entry.ts',
    config: './src/config-entry.ts',
    value: './src/value-entry.ts',
  },
  output: {
    entryFileNames: 'assets/[name].js',
  },
},

}
})

from tmagic-editor.

jia000 avatar jia000 commented on September 2, 2024

additionalLegacyPolyfills:['regenerator-runtime/runtime']
把这个配置去掉试试

from tmagic-editor.

yoohoolai avatar yoohoolai commented on September 2, 2024

去掉一样不行

from tmagic-editor.

jia000 avatar jia000 commented on September 2, 2024

上面贴出来的vite.config应该是runtime的配置,MagicEditor 应该是在另一个项目中使用的,是不是弄错了

from tmagic-editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.