Skip to content

Commit

Permalink
Update: Exporting BoxAnnotations correctly in npm package (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
pramodsum committed Dec 8, 2017
1 parent a90b0e8 commit cf95efa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
src/third-party/*
dist/*
**/__tests__/*
index.js
4 changes: 1 addition & 3 deletions build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ const { BannerPlugin } = require('webpack');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const license = require('./license');

const src = path.resolve('src');

/* eslint-disable key-spacing, require-jsdoc */
const config = Object.assign(commonConfig(), {
entry: {
annotations: [`${src}/BoxAnnotations.js`]
annotations: ['./index.js']
},
output: {
path: path.resolve('lib'),
Expand Down
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
module.exports = require('./lib/annotations.js');
module.exports = require('./lib/annotations.css');
export { default as BoxAnnotations } from './src/BoxAnnotations.js';

0 comments on commit cf95efa

Please sign in to comment.