Skip to content
This repository has been archived by the owner on Dec 28, 2018. It is now read-only.

Commit

Permalink
build(rollup): inject node's global objects
Browse files Browse the repository at this point in the history
  • Loading branch information
tetsuharuohzeki committed Sep 4, 2016
1 parent 06ec670 commit 70bdf19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"rollup": "^0.34.13",
"rollup-plugin-babel": "^2.6.1",
"rollup-plugin-commonjs": "^4.1.0",
"rollup-plugin-node-globals": "^1.0.6",
"rollup-plugin-node-resolve": "^2.0.0",
"stylelint": "^7.2.0",
"tslint": "3.15.0-dev.0",
Expand Down
4 changes: 4 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const path = require('path');
const nodeResolve = require('rollup-plugin-node-resolve');
const commonjs = require('rollup-plugin-commonjs');
const babel = require('rollup-plugin-babel');
const nodeGlobals = require('rollup-plugin-node-globals');

const isRelease = process.env.NODE_ENV === 'production';

Expand Down Expand Up @@ -101,5 +102,8 @@ module.exports = {
presets: babelPresets,
plugins: babelPlugins,
}),

// https://github.com/calvinmetcalf/rollup-plugin-node-builtins
nodeGlobals(),
]
};

0 comments on commit 70bdf19

Please sign in to comment.