File tree 4 files changed +25
-7
lines changed
4 files changed +25
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
presets : [
3
- [" @babel/env" ],
3
+ [" @babel/preset- env" ],
4
4
],
5
5
plugins : [
6
- [" @babel/plugin-proposal-class-properties" ],
6
+ [" @babel/plugin-proposal-class-properties" , { loose : true } ],
7
7
[" babel-plugin-inline-import" , {
8
8
extensions : [
9
9
" .ttl" ,
10
10
" .sparql" ,
11
11
],
12
12
}],
13
13
],
14
+
15
+ env : {
16
+ module : {
17
+ presets : [
18
+ [" @babel/preset-env" , { modules : false }],
19
+ ],
20
+ },
21
+ },
14
22
}
Original file line number Diff line number Diff line change 1
1
# Build for Node
2
- node 8
2
+ node >= 10
3
+
3
4
# Build for most browsers
4
- > 1%
5
+ > 2%
6
+ last 2 Chrome versions
7
+ last 2 Firefox versions
8
+ last 2 iOS versions
5
9
6
- # No Proxy support
10
+ # Drop browsers without Proxy support
7
11
not ie <= 11
8
12
not operamini all
Original file line number Diff line number Diff line change 1
1
coverage
2
2
dist
3
3
lib
4
+ module
4
5
node_modules
Original file line number Diff line number Diff line change 9
9
"url" : " https://github.com/solid/query-ldflex/"
10
10
},
11
11
"main" : " lib/index.js" ,
12
+ "module" : " module/index.js" ,
13
+ "sideEffects" : false ,
12
14
"files" : [
13
15
" src" ,
14
16
" lib" ,
17
+ " module" ,
15
18
" dist" ,
16
- " !dist/demo"
19
+ " !dist/demo" ,
20
+ " .babelrc"
17
21
],
18
22
"dependencies" : {
19
23
"@rdfjs/data-model" : " ^1.1.1" ,
42
46
"webpack-dev-server" : " ^3.1.14"
43
47
},
44
48
"scripts" : {
45
- "build" : " npm run build:lib && npm run build:dist && npm run build:demo" ,
49
+ "build" : " npm run build:lib && npm run build:module && npm run build: dist && npm run build:demo" ,
46
50
"build:demo" : " webpack --config=./webpack/webpack.demo.config.js" ,
47
51
"build:dist" : " webpack --mode=production --config=./webpack/webpack.lib.config.js" ,
48
52
"build:lib" : " babel src --out-dir lib --copy-files" ,
53
+ "build:module" : " BABEL_ENV=module babel src --out-dir module" ,
49
54
"jest" : " jest" ,
50
55
"lint" : " eslint src test demo webpack" ,
51
56
"precommit" : " npm test" ,
You can’t perform that action at this time.
0 commit comments