Polymer / tools

Polymer Tools Monorepo
BSD 3-Clause "New" or "Revised" License
430 stars 200 forks source link

Too many `requirejs` installed by polymer serve #2536

Open baocang opened 6 years ago

baocang commented 6 years ago

Description

Versions & Environment

Steps to Reproduce

  1. Create an application project: polymer init polymer-2-application named polymer-demo
  2. Named shell as demo-app
  3. Move script to demo-app.js with es6 syntax
  4. Add script tag to demo-app.html: <script type="module" src="./demo-app.js"></script>
  5. Add another element named demo-element with es module script and html template
  6. Use the demo-element in demo-app.html or index.html
  7. Run with polymer serve --npm --open --open-path / --compile always

Expected Results

RequireJS inserted into index.html before first import link that only once.

Actual Results

RequireJS inserted before any script tag that with type module.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.