Skip to content

Commit 3bca25d

Browse files
committed
Reworked bundle exports
1 parent 94515d9 commit 3bca25d

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

index.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
export * from './lib/canonicalTitleMap';
1+
import * as schemaDefaultsImp from './lib/schemaDefaults';
2+
import * as sfPathImp from './lib/sfPath';
3+
import canonicalTitleMapImp from './lib/canonicalTitleMap';
4+
25
export * from './lib/merge.js';
3-
export * from './lib/schemaDefaults.js';
46
export * from './lib/select.js';
5-
export * from './lib/sfPath.js';
67
export * from './lib/traverse.js';
8+
9+
export const sfPath = sfPathImp;
10+
export const schemaDefaults = schemaDefaultsImp;
11+
export const canonicalTitleMap = canonicalTitleMapImp;

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "bundle.js",
66
"scripts": {
77
"build": "webpack",
8+
"prepublish": "npm run build",
89
"watch": "webpack --watch",
910
"test": "echo \"Error: no test specified\" && exit 1"
1011
},

webpack.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,5 @@ module.exports = {
1919
loader: 'babel',
2020
}
2121
]
22-
},
23-
externals: {
24-
'objectpath': 'objectpath'
2522
}
2623
};

0 commit comments

Comments
 (0)