How to use ocaml - 2 common examples

To help you get started, we’ve selected a few ocaml examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github reasonml / reason-tools / webpack.config.js View on Github external
],
};

const Page = {
  name: "Page",
  entry: {
    Popup: './lib/es6/src/extension/page.js',
  },
  output: {
    path: path.join(__dirname, 'docs/'),
    filename: '[name].bundle.js',
  },
  plugins: [
    new webpack.DefinePlugin({
      '__REASON_VERSION__': JSON.stringify(reasonPackage.version),
      '__OCAML_VERSION__': JSON.stringify(ocamlPackage.version)
    }),
  ],
  module: commonModule,
};

module.exports = [Extension, Page];
github reasonml / reason-tools / webpack.config.js View on Github external
entry: {
    Content: './lib/es6/src/extension/content.js',
    ContentLoader: './lib/es6/src/extension/contentLoader.js',
    Popup: './lib/es6/src/extension/popup.js',
    Background: './lib/es6/src/extension/background.js',
  },
  output: {
    path: path.join(__dirname, '_build/extension/'),
    filename: '[name].bundle.js',
  },
  module: commonModule,
  plugins: [
    new GenerateJsonPlugin('manifest.json', manifest),
    new webpack.DefinePlugin({
      '__REASON_VERSION__': JSON.stringify(reasonPackage.version),
      '__OCAML_VERSION__': JSON.stringify(ocamlPackage.version)
    }),
  ],
};

const Page = {
  name: "Page",
  entry: {
    Popup: './lib/es6/src/extension/page.js',
  },
  output: {
    path: path.join(__dirname, 'docs/'),
    filename: '[name].bundle.js',
  },
  plugins: [
    new webpack.DefinePlugin({
      '__REASON_VERSION__': JSON.stringify(reasonPackage.version),

ocaml

OCaml compiler packaged for esy

Unrecognized
Latest version published 5 months ago

Package Health Score

68 / 100
Full package analysis

Popular ocaml functions