Browse Source

Using commonjs2 as a library target for exports

plugin-mode
Eli Perelman 8 years ago
parent
commit
4ff883447a
  1. 2
      packages/neutrino-preset-node/package.json
  2. 3
      packages/neutrino-preset-node/src/index.js

2
packages/neutrino-preset-node/package.json

@ -1,6 +1,6 @@
{
"name": "neutrino-preset-node",
"version": "2.1.1",
"version": "2.2.0",
"description": "Neutrino preset for building Node.js projects",
"main": "src/index.js",
"keywords": [

3
packages/neutrino-preset-node/src/index.js

@ -9,6 +9,9 @@ const MODULES = path.join(__dirname, '../node_modules');
const config = merge(preset, {
target: 'node',
output: {
libraryTarget: 'commonjs2'
},
eslint: {
configFile: path.join(__dirname, 'eslint.js')
},

Loading…
Cancel
Save