cost 81 ms
当 .version 为 '2018-09' 或未指定时,装饰器插件需要一个 'decoratorsBeforeExport' 选项,其值必须是布尔值 - The decorators Plugin when .version is '2018-09' or not specified, requires a 'decoratorsBeforeExport' option, whose value must be a boolean

我收到以下Babel error 当 .version 为 '2018-09' 或未指定时,装饰器插件需要一个 'decoratorsBeforeExport' 选项,其值必须是布尔值。 ..../node_modules/@babel/plugin-proposal-decorators/ ...

如何避免在 react-app 的生产版本中使用 polyfill - How to avoid polyfills on production build of react-app

我的目标是在我的 react-app built 中保留ES6语法(或最新的语法) 。 我已经设法通过删除一些babel依赖项(例如@babel/preset-env等)来避免在我的开发环境中使用 polyfill。 我注意到构建的产品使用var关键字和其他 ES5 语法。 我假设babel (或 ...

当我添加 package 时,我收到 webpack &lt; 5 用于默认包含 node.js 核心模块的 polyfills。现在不再是这种情况 - when i add a package i recieve webpack < 5 used to include polyfills for node.js core modules by default.This is no longer the case

我使用与 laravel 反应。 我用 nmp 安装了一个日期选择器 package 安装后,当我启动 npm 运行手表时,我收到了这个错误找不到模块:错误:无法解析“/home/poldark/Desktop/chapagha/chapagha/src/chapagha-web/node_modu ...

传递给 'exclude' 选项的插件/内置 'es.const, es.let' 无效 - The plugins/built-ins 'es.const, es.let' passed to the 'exclude' option are not valid

当我运行我的 Vue 项目时,它在终端中抛出一个错误: 我认为我的环境是错误的,但我不知道在哪里; 我的环境: babel.config.js 谁能帮我? 谢谢; ======================= 可能是因为在执行npx browserslist@latest --update-d ...

使用 babel regenerator-runtime 的异步/等待在 ie11 中不起作用 - Async / Await using babel regenerator-runtime does not work in ie11

我有一个模板应用程序,我想使用 ie11,因为我使用的是 webpack + babel。 由于某种原因我忽略了,我的 JS 在 ie11 中根本不起作用,即使我确实将它设置为我的配置中的目标。 为了测试它,我在互联网上使用了 ie11,但由于我在 MacOS 上,我无法访问堆栈错误。 我在这里想念 ...

Babel 可以在生成的代码中包含 regeneratorRuntime 依赖项吗? - Can Babel include regeneratorRuntime Dependency within the Generated Code?

使用 babel 以 Node v4 为目标,生成的代码似乎依赖于未包含在输出中的regeneratorRuntime模块。 据我所知,在执行生成的代码之前,似乎必须在运行时需要“regenerator-runtime/runtime”模块。 (通过https://babeljs.io/docs ...

如何使 webpack 导入 polyfills 仅用于特定构建? - how to make webpack import polyfills only for a specific build?

我只是设法让 webpack 创建了两个单独的构建,一个用于 es5,另一个用于 es6。 看下面的配置文件: 现在的问题是我希望 webpack 仅为 es5 构建导入 polyfill。 并使用设置为 usage 的 usebuilins 无法填充任何内容。 我是否可能使用错误,可能与 n ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM