Skip to content

fable 2.x #64

Open
Open

Description

@forki

I'm trying to update to fable 2.x but this üproject doesn't use webpack - so I can't copy @MangelMaxime's and @alfonsogarciacaro's work from SAFE-Stack/SAFE-BookStore#378

any help appreciated

Activity

  1. MangelMaxime commented on Feb 11, 2019

    @MangelMaxime

    I think you first need to update fable-react-native for Fable 2 supports.

  2. MangelMaxime commented on Feb 20, 2019

    @MangelMaxime

    @forki fable-splitter is compatible with Fable 2 so I don't think you need to change it as we did for the webpack config when switching from Fable 1 to Fable 2.

    For example, for a node cli apps this config is enough.

    const path = require("path");
    
    module.exports = {
        entry: path.join(__dirname, "./Docs.fsproj"),
        outDir: path.join(__dirname, "./dist"),
        babel: {
            plugins: ["@babel/plugin-transform-modules-commonjs"],
        }
    };

    As you can, see it's almost empty.

    First, I would try to update all the npm packages to their latest version or at least thus related to Fable compilation. You will also need to add fable-compiler (related to Fable 2.1 release).

  3. forki commented on Feb 20, 2019

    @forki
    MemberAuthor

    do we continue to use dotnet-fable nuget package? Probably not, right?

  4. forki commented on Feb 20, 2019

    @forki
    MemberAuthor

    do I use some yarn command?

    WIP at #66

  5. MangelMaxime commented on Feb 20, 2019

    @MangelMaxime

    dotnet-fable has been removed since Fable 2.1

    The replacement is to use fable-compiler from npm.
    To set up Fable 2.1:

    • run yarn upgrade fable-splitter@latest fable-compiler@latest
    • remove dotnet-fable from paket.dependencies and paket.reference
  6. forki commented on Feb 20, 2019

    @forki
    MemberAuthor

    yes I have fable-compiler installed. but how to start it!?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions