Comments (5)
Published version 1.0.0-1 with fix.
from odata-filter-builder.
Hi @jgornick.
Library distributed with es5:
- umd:
https://unpkg.com/[email protected]/dist/odata-filter-builder.js - commonjs:
https://unpkg.com/[email protected]/lib/ODataFilterBuilder.js
Could you describe what is wrong in IE?
from odata-filter-builder.
I suppose when I'm using TypeScript and importing like:
import { ODataFilterBuilder } from 'odata-filter-builder';
My output via webpack is using the src/ODataFilterBuilder.js
defined via module
in package.json
. This should be using the main
lib/ODataFilterBuilder.js
.
If I remove module
then my build uses the ES5 version of the script in lib
.
Thoughts?
from odata-filter-builder.
I see.
For module
field, we need transpile our source to es5, with import/export
declaration (https://rollupjs.org/guide/en#output-format-f-format)
As a workaround, you could include odata-filter-builder
to your typescript loader, or remove module
field from mainFields
:
mainFields: ["main"]
Fill free to create PR.
It should be something like:
{
"module": "es/ODataFilterBuilder.js",
...
"scripts": {
...
"build:es": "rollup -c -f es src/ODataFilterBuilder.js > es/ODataFilterBuilder.js",
...
}
}
from odata-filter-builder.
I ended up fixing in my webpack config like:
resolve: {
alias: {
'odata-filter-builder': path.resolve(
helpers.root('node_modules'),
'odata-filter-builder',
'lib',
'ODataFilterBuilder.js'
)
}
}
However, I do agree that by default the module
and/or main
in the distributed package.json point to an ES5 version.
I'll try to get something together for this and submit a PR.
from odata-filter-builder.
Related Issues (12)
- Support for ES2015 module exports HOT 7
- Support for any lambda operator HOT 4
- Convert wrap in parenthesis (grouping) to an operator? HOT 3
- Percent encoding of filter values HOT 3
- How to send UID (eg 24221e2b-16e4-29b3-bb6c-bgb4fa724915) without quotes? HOT 2
- Empty values (null, undefined) in 'contains' method HOT 3
- Add ability to check if filter is empty
- Add ability to check if object is instance of ODataFilterBuilder
- SubstringOf HOT 2
- ODataV4 Datetime filters not supported HOT 1
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from odata-filter-builder.