Skip to content
  1. Feb 05, 2019
  2. Feb 04, 2019
    • Luke Schoen's avatar
      chore: Refactor using Babel plugin syntax from guide · 2213a8fa
      Luke Schoen authored
      In the Babel 7 migration guide these are the different plugings and
      to add them:
      
      See https://babeljs.io/blog/2018/07/27/removing-babels-stage-presets#migrating
      
      ```
      // Stage 0
      "@babel/plugin-proposal-function-bind",
      
      // Stage 1
      "@babel/plugin-proposal-export-default-from",
      "@babel/plugin-proposal-logical-assignment-operators",
      ["@babel/plugin-proposal-optional-chaining", { "loose": false }],
      ["@babel/plugin-proposal-pipeline-operator", { "proposal": "minimal" }],
      ["@babel/plugin-proposal-nullish-coalescing-operator", { "loose": false }],
      "@babel/plugin-proposal-do-expressions",
      
      // Stage 2
      ["@babel/plugin-proposal-decorators", { "legacy": true }],
      "@babel/plugin-proposal-function-sent",
      "@babel/plugin-proposal-export-namespace-from",
      "@babel/plugin-proposal-numeric-separator",
      "@babel/plugin-proposal-throw-expressions",
      
      // Stage 3
      "@babel/plugin-syntax-dynamic-import",
      "@babel/plugin-syntax-import-meta",
      ["@babel/plugin-proposal-class-properties", { "loose": false }],
      "@babel/plugin-proposal-json-strings"
      ```
      2213a8fa
    • Luke Schoen's avatar
      ffe59409
    • Luke Schoen's avatar
      fix: Remove stage-0 and add dependencies to fix errors. Update to Babel 7.2.3 · f9856d6b
      Luke Schoen authored
      Fixes errors:
      
      ```
      { Error: Cannot find module '@babel/plugin-proposal-class-properties' from '/Users/scon/code/src/paritytech/fether/packages/fether-ui'
      ```
      
      ```
      Failed to minify the bundle. Error: static/js/main.f19a0eac.chunk.js from Terser
      TypeError: Cannot read property 'minify' of undefined
      ```
      f9856d6b
  3. Feb 03, 2019
  4. Feb 02, 2019
  5. Feb 01, 2019
  6. Jan 31, 2019
    • Luke Schoen's avatar
      test: Fix Babel decorators plugin errors · d293a7df
      Luke Schoen authored
      * Fixes `SyntaxError ... Decorators transform is necessary.` (regarding use of `@observable`)
      * Fixes `Decorating class property failed. Please ensure that proposal-class-properties is enabled and set to use loose mode. To use proposal-class-properties in spec mode with decorators, wait for the next major version of decorators in stage 2.`
      d293a7df