如何填写包裹捆绑商信息?

时间:2019-05-17 04:04:07

标签: webpack parceljs babel-polyfill

我正在玩包裹打包机,我不确定如何使我的一些东西工作。

在我的.babelrc文件中,我有这个

wbMaster

但是包裹不喜欢plugin-transform-object-assign和plugin-proposal-object-rest-spread,因为它们表示重复。

删除这些错误后,我又遇到了另一个错误,将2个新软件包和一个插件添加到“插件”中即可解决

“ @ babel / transform-runtime”,

Sub ReportCreation()
    Dim wbMaster As Workbook, wbCurr As Workbook As Workbook
    Dim pathMaster As String, pathCurrent As String As String
    Dim rowMaster As Variant
    Dim rowCurrent As Long, lRowCurrent As Long, lRowMaster As Long



    pathMaster = "C:\Users\VBA\report2019.xlsx"
    pathCurrent = "C:\Users\VBA\report 042019.xlsx"


    Set wbMaster = Workbooks.Open(pathMaster)
    Set wbCurr = Workbooks.Open(pathCurrent) 'current month


'    rowMaster = Application.Match(wbCurr.Worksheets(1).Cells(3, 1), wbMaster.Worksheets(1).Range("A:A"), 0)
    rowMaster = Application.WorksheetFunction.Match(7, wbMaster.Worksheets(1).Range("A:A"), 0)
    Debug.Print rowMaster

End Sub    

现在我要得到

{
  "presets": ["@babel/env", "@babel/react"],
  "plugins": [
    ["@babel/plugin-proposal-decorators", { "legacy": true }],
    "@babel/plugin-transform-object-assign",
    "@babel/plugin-proposal-object-rest-spread",
    "transform-class-properties",
    "emotion"
  ]
}

我没有pollyfill似乎是个问题

在我的webpack.js中,我拥有

npm install --save @babel/runtime 
npm install --save-dev @babel/plugin-transform-runtime

所以我不确定如何在包裹中实现这一目标。

0 个答案:

没有答案