How to use the reason/package.json.version function in reason

To help you get started, we’ve selected a few reason 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
name: "Extension",
  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

Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems

MIT
Latest version published 6 years ago

Package Health Score

67 / 100
Full package analysis