Coder Social home page Coder Social logo

devolution's Introduction

List of all projects

State

React

Code splitting

Node

Data sources

Vue

DOM

Util

Mocking

Styles

Optimizations

Stuff

Rest

Just articles

Habr articles (russian)

devolution's People

Contributors

armanio avatar hormesiel avatar thekashey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

whjvenyl maryiv

devolution's Issues

how to install this tool?

the sunj
if i try to npm i devolution - it fails with:

ENOENT: no such file or directory, chmod '/.../node_modules/devolution/dist/cli.js'

Suggestion: a Webpack Plugin

I wonder if it would be possible to run this against Webpack's generated .assets (once webpack has generated the modern bundles) rather than actual files on disk? That would keep everything in-memory and also provide a convenient place to kick off devolution for those who are controlling everything else with Webpack already.

Edge v18 dynamic import issue

Apologies it may have nothing to do with the tool but I'm sure you will know what the issue is. I'm devoluting esm using targets

"edge": "16",
"firefox": "60",
"chrome": "61",
"safari": "10.1"

For es5 I target "ie11" only

IE11 (es5) works fine but Edge v18 (esm) does not.

I get a SCRIPT1002: Syntax error

The code that gets highlighted as problematic is...

import(n).then(t=>e(t)) (the debugger highlights "(n)" to be precise)

Latest Edge works fine. I'm struggling to work out what the issue is so any insight would be really appreciated. It seems to be related to dynamic imports. It seems the older version of Edge (which you get when installing windows 10 v1802) understands <script type="module"> but does not understand dynamic imports? So do I need to polyfill dynamic imports myself? If so I'm not quite understanding what devolution is doing for me? Should it not supply this polyfill?

Output below which polyfills applied for esm...

โ•‘ esm โ”‚ 381051 โ”‚ +60903 โ”‚ 42 โ”‚ es.symbol.description,es.string.replace,es.array.index-of, โ•‘
โ•‘ โ”‚ โ”‚ โ”‚ โ”‚ es.array.slice,es.regexp.constructor,es.regexp.to-string, โ•‘
โ•‘ โ”‚ โ”‚ โ”‚ โ”‚ esnext.map.delete-all,esnext.map.every,esnext.map.filter, โ•‘
โ•‘ โ”‚ โ”‚ โ”‚ โ”‚ esnext.map.find,esnext.map.find-key,esnext.map.includes, โ•‘
โ•‘ โ”‚ โ”‚ โ”‚ โ”‚ esnext.map.key-of,esnext.map.map-keys,esnext.map.map-values, โ•‘
โ•‘ โ”‚ โ”‚ โ”‚ โ”‚ esnext.map.merge,esnext.map.reduce,esnext.map.some,esnext. โ•‘
โ•‘ โ”‚ โ”‚ โ”‚ โ”‚ map.update,es.array.iterator,web.dom-collections.iterator, โ•‘
โ•‘ โ”‚ โ”‚ โ”‚ โ”‚ es.array.reduce-right,esnext.weak-map.delete-all,es.string. โ•‘
โ•‘ โ”‚ โ”‚ โ”‚ โ”‚ trim,es.array.splice,es.object.assign,es.string.includes,es. โ•‘
โ•‘ โ”‚ โ”‚ โ”‚ โ”‚ string.split,es.array.sort,es.promise,es.string.search,es. โ•‘
โ•‘ โ”‚ โ”‚ โ”‚ โ”‚ object.from-entries,es.string.match,web.url,es.array.reduce, โ•‘
โ•‘ โ”‚ โ”‚ โ”‚ โ”‚ es.array-buffer.constructor,es.array-buffer.slice,es.array. โ•‘
โ•‘ โ”‚ โ”‚ โ”‚ โ”‚ last-index-of,es.string.starts-with,es.string.ends-with,web. โ•‘
โ•‘ โ”‚ โ”‚ โ”‚ โ”‚ url.to-json,es.promise.finally โ•‘

Many thanks in advance

Should handle nested directories

js files could be hidden inside nested directories, and devolution should be able to handle them. However it's not clear how.
Probably - throw if they needed some transformation, or it will broke the aliasing part.

Subresource Integrity

Subresource Integrity would be broken after devolution and should be recalculated.

es5 target broken if I remove target esm from the .devolutionrc.js file

Hello, basically I only wanted es5 output, so I removed the esm target from the .devolutionrc.js file. This produced ES5 code that would not load in IE11. As soon as I put back the esm target back in the code generated under the es5 directory works fine?

Very strange, no idea why, just thought I would report it in case some one hits this issue. Maybe the esm target always has to be there?

Great tool by the way! So far so good!

addPolyfills does not seem to do anything

Part of my .devolutionrc file

addPolyfills: {
esm: [
// probably none?
],
es5: [
'proxy-polyfill',
]
},

It does not add the polyfill? It does exist in package.json etc.

Currently I have to include it in my code to get things to work but I don't want to include it for target ESM ? What am I missing?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.