Skip to content

Commit 2da6148

Browse files
committed
Use inline-package-json plugin
1 parent e57dcb2 commit 2da6148

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

gulpfile.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ gulp.task('compile', function() {
4747
'runtime',
4848
'utility.inlineEnvironmentVariables'
4949
],
50-
plugins: [require('./vendor/babel-plugin-dead-code-elimination')],
50+
plugins: [
51+
'inline-package-json',
52+
require('./vendor/babel-plugin-dead-code-elimination')
53+
],
5154
}))
52-
.pipe(replace(/require\('\.\.\/package\.json'\)/g, JSON.stringify(packageJSON)))
5355
.pipe(gulp.dest(path.join('lib', BUILD)));
5456
});
5557

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"devDependencies": {
3434
"babel-jest": "~5.3.0",
3535
"babel-plugin-flow-comments": "^1.0.9",
36+
"babel-plugin-inline-package-json": "~1.0.1",
3637
"browserify": "^11.0.1",
3738
"coveralls": "^2.11.3",
3839
"gulp": "^3.9.0",

0 commit comments

Comments
 (0)