doowb / sort-object

Sort the keys in an object.
MIT License
37 stars 6 forks source link

make this module webpack compatible #11

Closed jonathanong closed 8 years ago

jonathanong commented 8 years ago

seems to be your get-value dependency. until then, i can't use this module :(

WARNING in ./~/get-value/utils.js
Critical dependencies:
7:34-41 require function is used in a way in which dependencies cannot be statically extracted
 @ ./~/get-value/utils.js 7:34-41

WARNING in ./~/get-value/LICENSE
Module parse failed: /Users/jong/Workspace/vacation/vacation-server/node_modules/get-value/LICENSE Line 1: Unexpected identifier
You may need an appropriate loader to handle this file type.
| The MIT License (MIT)
|
| Copyright (c) 2014-2015, Jon Schlinkert.
 @ ./~/get-value ^\.\/.*$

WARNING in ./~/get-value/README.md
Module parse failed: /Users/jong/Workspace/vacation/vacation-server/node_modules/get-value/README.md Line 1: Unexpected token ILLEGAL
You may need an appropriate loader to handle this file type.
| # get-value [![NPM version](https://badge.fury.io/js/get-value.svg)](http://badge.fury.io/js/get-value)  [![Build Status](https://travis-ci.org/jonschlinkert/get-value.svg)](https://travis-ci.org/jonschlinkert/get-value)
|
| > Use property paths (`a.b.c`) to get a nested value from an object.
 @ ./~/get-value ^\.\/.*$
jonschlinkert commented 8 years ago

see https://github.com/doowb/unlazy-loader

This problem is caused by webpack's custom require parser. browserify doesn't have this issue.

edit: I also suggest you open an issue on webpack, since this is caused a webpack bug