Code Monkey home page Code Monkey logo

Comments (5)

ai avatar ai commented on June 25, 2024

Try ignore: "@babel/runtime"

from size-limit.

Andarist avatar Andarist commented on June 25, 2024

Oh I haven't noticed that there is |/ at the ned of your created RegExp here

This results with an error:

ERROR in react-textarea-autosize.esm.browser.js from UglifyJs
Unexpected character '@' [react-textarea-autosize.esm.browser.js:91,17]
    at runWebpack.then.stats (/Users/mateuszburzynski/Desktop/react-textarea-autosize/node_modules/size-limit/index.js:201:15)
    at process._tickCallback (internal/process/next_tick.js:68:7)

But is a separate problem, not directly related to this issue. I still believe that this feature request has merit, but it seems that I personally won't need it, so I'll leave it to you to decide if you want to close it.

Thanks!

from size-limit.

ai avatar ai commented on June 25, 2024

@Andarist no, we can keep the discussion here. It is some UglifyJS issue. Here is full error:

    ERROR in index.js from UglifyJs
    Unexpected character '@' [index.js:119,17]

Do you have any ideas?

Maybe @babel/runtime contain some non-JS content?

from size-limit.

Andarist avatar Andarist commented on June 25, 2024

Actually I think this is webpack issue - gonna try to fix it.

This is the part of the output responsible for externals:

/* 0 */
/***/ (function(module, exports) {

module.exports = @babel/runtime/helpers/esm/extends;

/***/ }),
/* 1 */
/***/ (function(module, exports) {

module.exports = @babel/runtime/helpers/esm/assertThisInitialized;

/***/ }),
/* 2 */
/***/ (function(module, exports) {

module.exports = react;

/***/ }),
/* 3 */
/***/ (function(module, exports) {

module.exports = @babel/runtime/helpers/esm/objectWithoutPropertiesLoose;

/***/ }),
/* 4 */
/***/ (function(module, exports) {

module.exports = @babel/runtime/helpers/esm/inheritsLoose;

/***/ }),

So while it works with react as its a valid identifier, it doesnt work well with scoped packages.

from size-limit.

ai avatar ai commented on June 25, 2024

Cool, I am closing the issue :D

from size-limit.

Related Issues (20)

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.