Giter Club home page Giter Club logo

Comments (6)

notoriousb1t avatar notoriousb1t commented on May 31, 2024

I don't see any ES6 stuff in the lib directory. Can you provide your webpack configuration?

from polymorph.

humet avatar humet commented on May 31, 2024

I'm using Roots Sage, you can see the webpack configuration here: https://github.com/roots/sage/tree/9.0.0-beta.4/resources/assets/build

from polymorph.

notoriousb1t avatar notoriousb1t commented on May 31, 2024

I installed a test project using the vue-cli (which uses webpack internally) and did not encounter an issue running and doing a production build with polymorph-js. I can safely rule out that polymorph is built incorrectly.

What version of polymorph are you currently using? The current version is 0.2.2. Better yet, please provide your package.json. Perhaps this is an issue with a particular version of webpack?

from polymorph.

humet avatar humet commented on May 31, 2024

I'm using 0.2.2. Here is my package.json

{
"name": "sage",
"version": "9.0.0",
"author": "Roots [email protected]",
"homepage": "https://roots.io/sage/",
"private": true,
"repository": {
"type": "git",
"url": "git://github.com/roots/sage.git"
},
"bugs": {
"url": "https://github.com/roots/sage/issues"
},
"licenses": [
{
"type": "MIT",
"url": "http://opensource.org/licenses/MIT"
}
],
"browserslist": [
"last 2 versions",
"android 4",
"opera 12"
],
"stylelint": {
"extends": "stylelint-config-standard",
"rules": {
"no-empty-source": null,
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": [
"extend",
"at-root",
"debug",
"warn",
"error",
"if",
"else",
"for",
"each",
"while",
"mixin",
"include",
"content",
"return",
"function"
]
}
]
}
},
"scripts": {
"build": "webpack --progress --config resources/assets/build/webpack.config.js",
"build:production": "webpack --progress -p --config resources/assets/build/webpack.config.js",
"build:profile": "webpack --progress --profile --json --config resources/assets/build/webpack.config.js",
"start": "webpack --hide-modules --watch --config resources/assets/build/webpack.config.js",
"rmdist": "rimraf dist",
"lint": "npm run -s lint:scripts && npm run -s lint:styles",
"lint:scripts": "eslint resources/assets/scripts resources/assets/build",
"lint:styles": "stylelint "resources/assets/styles/**/*.{css,sass,scss,sss,less}"",
"test": "npm run -s lint"
},
"engines": {
"node": ">= 6.9.4"
},
"devDependencies": {
"autoprefixer": "~7.2.5",
"browser-sync": "~2.23.6",
"browsersync-webpack-plugin": "^0.6.0",
"bs-html-injector": "~3.0",
"buble-loader": "^0.4.1",
"cache-loader": "~1.2.0",
"clean-webpack-plugin": "^0.1.18",
"copy-globs-webpack-plugin": "^0.2.0",
"css-loader": "^0.28.9",
"cssnano": "~v4.0.0-rc.2",
"eslint": "~4.17.0",
"eslint-loader": "~1.9",
"eslint-plugin-import": "~2.8.0",
"extract-text-webpack-plugin": "~3.0.2",
"file-loader": "^1.1.6",
"friendly-errors-webpack-plugin": "^1.6.1",
"imagemin-mozjpeg": "~7.0.0",
"imagemin-webpack-plugin": "~2.0.0",
"import-glob": "~1.5",
"node-sass": "~4.7.2",
"postcss-loader": "~2.1.0",
"postcss-safe-parser": "~3.0",
"resolve-url-loader": "~2.2.1",
"rimraf": "~2.6",
"sass-loader": "~6.0",
"style-loader": "^0.20.1",
"stylelint": "^8.4.0",
"stylelint-config-standard": "~18.0.0",
"stylelint-webpack-plugin": "^0.10.1",
"url-loader": "^0.6.2",
"webpack": "~3.10.0",
"webpack-assets-manifest": "^1.0.0",
"webpack-dev-middleware": "~2.0.4",
"webpack-hot-middleware": "~2.21.0",
"webpack-merge": "~4.1.1",
"yargs": "~11.0.0"
},
"dependencies": {
"bootstrap": "^4.0.0-beta",
"jquery": "^3.3.1",
"polymorph-js": "^0.2.2",
"popmotion": "^8.3.6",
"popper.js": "~1.11"
}
}

from polymorph.

notoriousb1t avatar notoriousb1t commented on May 31, 2024

I think this might be an issue with that particular version of webpack + the uglify plugin: webpack-contrib/uglifyjs-webpack-plugin#78 (comment)

The resolution I see in those is to upgrade webpack or the plugin.

Alternatively, the npm package ships with a dist folder. You can configure webpack to alias node_modules/polymorph-js/dist/polymorph.js and that should work around the webpack issue.

from polymorph.

notoriousb1t avatar notoriousb1t commented on May 31, 2024

Closing due to inactivity. If you are still having issues, please reopen this with further details.

from polymorph.

Related Issues (13)

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.